parent
7768084655
commit
d849dab7ba
3 changed files with 13 additions and 7 deletions
|
@ -34,9 +34,11 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up sensors."""
|
||||
coordinator: DataUpdateCoordinator = hass.data[DOMAIN][config_entry.entry_id]
|
||||
coordinator: DataUpdateCoordinator[dict[str, OncueDevice]] = hass.data[DOMAIN][
|
||||
config_entry.entry_id
|
||||
]
|
||||
entities: list[OncueBinarySensorEntity] = []
|
||||
devices: dict[str, OncueDevice] = coordinator.data
|
||||
devices = coordinator.data
|
||||
for device_id, device in devices.items():
|
||||
entities.extend(
|
||||
OncueBinarySensorEntity(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue