Remove update_before_add from legacy ios integration (#111033)

pull/111037/head
J. Nick Koston 2024-02-20 14:26:24 -06:00 committed by GitHub
parent 8e9946afc9
commit 9f8e4cecdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -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):