Remove update_before_add from legacy ios integration (#111033)
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…
Reference in New Issue