mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Remove update_before_add from legacy ios integration (#111033)
This commit is contained in:
parent
8e9946afc9
commit
9f8e4cecdd
@ -52,13 +52,11 @@ async def async_setup_entry(
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up iOS from a config entry."""
|
||||
entities = [
|
||||
async_add_entities(
|
||||
IOSSensor(device_name, device, description)
|
||||
for device_name, device in ios.devices(hass).items()
|
||||
for description in SENSOR_TYPES
|
||||
]
|
||||
|
||||
async_add_entities(entities, True)
|
||||
)
|
||||
|
||||
|
||||
class IOSSensor(SensorEntity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user