[max6956] Use register_apply_action for set_brightness_global and set_brightness_mode (#19672)

This commit is contained in:
J. Nick Koston
2026-09-25 19:40:48 +00:00
committed by GitHub
parent 5aeab5f361
commit aef3a586de
4 changed files with 27 additions and 75 deletions
@@ -0,0 +1,14 @@
button:
- platform: template
name: MAX6956 Actions
on_press:
- max6956.set_brightness_global: 10
- max6956.set_brightness_global:
id: max6956_1
brightness_global: !lambda return 5;
- max6956.set_brightness_mode:
id: max6956_1
brightness_mode: segment
- max6956.set_brightness_mode:
id: max6956_1
brightness_mode: !lambda return max6956::GLOBAL;
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
max6956: !include common.yaml
actions: !include common-actions.yaml