Add missing Start Dimmer mapping for bond buttons (#74555)
This commit is contained in:
parent
0f813b61c3
commit
157d6dc83f
2 changed files with 10 additions and 0 deletions
|
@ -88,6 +88,13 @@ BUTTONS: tuple[BondButtonEntityDescription, ...] = (
|
|||
mutually_exclusive=Action.TURN_DOWN_LIGHT_ON,
|
||||
argument=None,
|
||||
),
|
||||
BondButtonEntityDescription(
|
||||
key=Action.START_DIMMER,
|
||||
name="Start Dimmer",
|
||||
icon="mdi:brightness-percent",
|
||||
mutually_exclusive=Action.SET_BRIGHTNESS,
|
||||
argument=None,
|
||||
),
|
||||
BondButtonEntityDescription(
|
||||
key=Action.START_UP_LIGHT_DIMMER,
|
||||
name="Start Up Light Dimmer",
|
||||
|
|
|
@ -30,6 +30,7 @@ def light_brightness_increase_decrease_only(name: str):
|
|||
"actions": [
|
||||
Action.TURN_LIGHT_ON,
|
||||
Action.TURN_LIGHT_OFF,
|
||||
Action.START_DIMMER,
|
||||
Action.START_INCREASING_BRIGHTNESS,
|
||||
Action.START_DECREASING_BRIGHTNESS,
|
||||
Action.STOP,
|
||||
|
@ -75,6 +76,8 @@ async def test_entity_registry(hass: core.HomeAssistant):
|
|||
assert entity.unique_id == "test-hub-id_test-device-id_startincreasingbrightness"
|
||||
entity = registry.entities["button.name_1_start_decreasing_brightness"]
|
||||
assert entity.unique_id == "test-hub-id_test-device-id_startdecreasingbrightness"
|
||||
entity = registry.entities["button.name_1_start_dimmer"]
|
||||
assert entity.unique_id == "test-hub-id_test-device-id_startdimmer"
|
||||
|
||||
|
||||
async def test_mutually_exclusive_actions(hass: core.HomeAssistant):
|
||||
|
|
Loading…
Add table
Reference in a new issue