mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 22:54:23 -04:00
Bump to v0.4.0
This commit is contained in:
parent
c78aeb1fbb
commit
e1a2af70e9
6 changed files with 23 additions and 34 deletions
|
@ -14,6 +14,7 @@ from .hon import HonCoordinator, HonEntity
|
|||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@dataclass
|
||||
class HonSwitchEntityDescriptionMixin:
|
||||
turn_on_key: str = ""
|
||||
|
@ -22,8 +23,8 @@ class HonSwitchEntityDescriptionMixin:
|
|||
|
||||
@dataclass
|
||||
class HonSwitchEntityDescription(HonSwitchEntityDescriptionMixin,
|
||||
SwitchEntityDescription
|
||||
):
|
||||
SwitchEntityDescription
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
|
@ -153,5 +154,3 @@ class HonSwitchEntity(HonEntity, SwitchEntity):
|
|||
self.async_write_ha_state()
|
||||
else:
|
||||
await self._device.commands[self.entity_description.turn_off_key].send()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue