Bump to v0.4.0

This commit is contained in:
Andre Basche 2023-04-08 06:15:33 +02:00
parent c78aeb1fbb
commit e1a2af70e9
6 changed files with 23 additions and 34 deletions

View file

@ -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()