mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add missing Start Dimmer mapping for bond buttons (#74555)
This commit is contained in:
parent
0f813b61c3
commit
157d6dc83f
@ -88,6 +88,13 @@ BUTTONS: tuple[BondButtonEntityDescription, ...] = (
|
|||||||
mutually_exclusive=Action.TURN_DOWN_LIGHT_ON,
|
mutually_exclusive=Action.TURN_DOWN_LIGHT_ON,
|
||||||
argument=None,
|
argument=None,
|
||||||
),
|
),
|
||||||
|
BondButtonEntityDescription(
|
||||||
|
key=Action.START_DIMMER,
|
||||||
|
name="Start Dimmer",
|
||||||
|
icon="mdi:brightness-percent",
|
||||||
|
mutually_exclusive=Action.SET_BRIGHTNESS,
|
||||||
|
argument=None,
|
||||||
|
),
|
||||||
BondButtonEntityDescription(
|
BondButtonEntityDescription(
|
||||||
key=Action.START_UP_LIGHT_DIMMER,
|
key=Action.START_UP_LIGHT_DIMMER,
|
||||||
name="Start Up Light Dimmer",
|
name="Start Up Light Dimmer",
|
||||||
|
@ -30,6 +30,7 @@ def light_brightness_increase_decrease_only(name: str):
|
|||||||
"actions": [
|
"actions": [
|
||||||
Action.TURN_LIGHT_ON,
|
Action.TURN_LIGHT_ON,
|
||||||
Action.TURN_LIGHT_OFF,
|
Action.TURN_LIGHT_OFF,
|
||||||
|
Action.START_DIMMER,
|
||||||
Action.START_INCREASING_BRIGHTNESS,
|
Action.START_INCREASING_BRIGHTNESS,
|
||||||
Action.START_DECREASING_BRIGHTNESS,
|
Action.START_DECREASING_BRIGHTNESS,
|
||||||
Action.STOP,
|
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"
|
assert entity.unique_id == "test-hub-id_test-device-id_startincreasingbrightness"
|
||||||
entity = registry.entities["button.name_1_start_decreasing_brightness"]
|
entity = registry.entities["button.name_1_start_decreasing_brightness"]
|
||||||
assert entity.unique_id == "test-hub-id_test-device-id_startdecreasingbrightness"
|
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):
|
async def test_mutually_exclusive_actions(hass: core.HomeAssistant):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user