mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use pydeconz interface controls for button platform (#74654)
This commit is contained in:
parent
bd43f0393c
commit
ac85a3ce64
@ -90,8 +90,11 @@ class DeconzButton(DeconzSceneMixin, ButtonEntity):
|
|||||||
|
|
||||||
async def async_press(self) -> None:
|
async def async_press(self) -> None:
|
||||||
"""Store light states into scene."""
|
"""Store light states into scene."""
|
||||||
async_button_fn = getattr(self._device, self.entity_description.button_fn)
|
async_button_fn = getattr(
|
||||||
await async_button_fn()
|
self.gateway.api.scenes,
|
||||||
|
self.entity_description.button_fn,
|
||||||
|
)
|
||||||
|
await async_button_fn(self._device.group_id, self._device.id)
|
||||||
|
|
||||||
def get_device_identifier(self) -> str:
|
def get_device_identifier(self) -> str:
|
||||||
"""Return a unique identifier for this scene."""
|
"""Return a unique identifier for this scene."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user