Skip to content

Commit

Permalink
Remove update_before_add from legacy ios integration (#111033)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Feb 20, 2024
1 parent 8e9946a commit 9f8e4ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions homeassistant/components/ios/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9f8e4ce

Please sign in to comment.