Remove update_before_add from nut sensors (#111032)

This commit is contained in:
J. Nick Koston 2024-02-20 14:12:06 -06:00 committed by GitHub
parent f295382c92
commit 8e9946afc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -984,7 +984,7 @@ 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],
@ -992,9 +992,7 @@ async def async_setup_entry(
unique_id,
)
for sensor_type in resources
]
async_add_entities(entities, True)
)
class NUTSensor(CoordinatorEntity[DataUpdateCoordinator[dict[str, str]]], SensorEntity):