mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-14 07:04:23 -04:00
Refactor entry setup
This commit is contained in:
parent
e9d1bb2056
commit
696dc136eb
8 changed files with 101 additions and 151 deletions
|
@ -14,7 +14,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||
class HonEntity(CoordinatorEntity):
|
||||
_attr_has_entity_name = True
|
||||
|
||||
def __init__(self, hass, entry, coordinator, device: HonAppliance) -> None:
|
||||
def __init__(self, hass, entry, device: HonAppliance) -> None:
|
||||
coordinator = get_coordinator(hass, device)
|
||||
super().__init__(coordinator)
|
||||
|
||||
self._hon = hass.data[DOMAIN][entry.unique_id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue