mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-16 08:04:22 -04:00
Reformat with black
This commit is contained in:
parent
4901be4050
commit
907bc44533
10 changed files with 133 additions and 85 deletions
|
@ -29,7 +29,9 @@ class HonEntity(CoordinatorEntity):
|
|||
return DeviceInfo(
|
||||
identifiers={(DOMAIN, self._device.mac_address)},
|
||||
manufacturer=self._device.get("brand", ""),
|
||||
name=self._device.nick_name if self._device.nick_name else self._device.model_name,
|
||||
name=self._device.nick_name
|
||||
if self._device.nick_name
|
||||
else self._device.model_name,
|
||||
model=self._device.model_name,
|
||||
sw_version=self._device.get("fwVersion", ""),
|
||||
)
|
||||
|
@ -38,7 +40,12 @@ class HonEntity(CoordinatorEntity):
|
|||
class HonCoordinator(DataUpdateCoordinator):
|
||||
def __init__(self, hass, device: HonAppliance):
|
||||
"""Initialize my coordinator."""
|
||||
super().__init__(hass, _LOGGER, name=device.mac_address, update_interval=timedelta(seconds=30))
|
||||
super().__init__(
|
||||
hass,
|
||||
_LOGGER,
|
||||
name=device.mac_address,
|
||||
update_interval=timedelta(seconds=30),
|
||||
)
|
||||
self._device = device
|
||||
|
||||
async def _async_update_data(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue