Skip to content

Commit

Permalink
Remove update_before_add from nut sensors (#111032)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Feb 20, 2024
1 parent f295382 commit 8e9946a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions homeassistant/components/nut/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,17 +984,15 @@ async def async_setup_entry(
if KEY_STATUS in resources:
resources.append(KEY_STATUS_DISPLAY)

entities = [
async_add_entities(
NUTSensor(
coordinator,
SENSOR_TYPES[sensor_type],
data,
unique_id,
)
for sensor_type in resources
]

async_add_entities(entities, True)
)


class NUTSensor(CoordinatorEntity[DataUpdateCoordinator[dict[str, str]]], SensorEntity):
Expand Down

0 comments on commit 8e9946a

Please sign in to comment.