mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove update_before_add from nut sensors (#111032)
This commit is contained in:
parent
f295382c92
commit
8e9946afc9
@ -984,7 +984,7 @@ async def async_setup_entry(
|
|||||||
if KEY_STATUS in resources:
|
if KEY_STATUS in resources:
|
||||||
resources.append(KEY_STATUS_DISPLAY)
|
resources.append(KEY_STATUS_DISPLAY)
|
||||||
|
|
||||||
entities = [
|
async_add_entities(
|
||||||
NUTSensor(
|
NUTSensor(
|
||||||
coordinator,
|
coordinator,
|
||||||
SENSOR_TYPES[sensor_type],
|
SENSOR_TYPES[sensor_type],
|
||||||
@ -992,9 +992,7 @@ async def async_setup_entry(
|
|||||||
unique_id,
|
unique_id,
|
||||||
)
|
)
|
||||||
for sensor_type in resources
|
for sensor_type in resources
|
||||||
]
|
)
|
||||||
|
|
||||||
async_add_entities(entities, True)
|
|
||||||
|
|
||||||
|
|
||||||
class NUTSensor(CoordinatorEntity[DataUpdateCoordinator[dict[str, str]]], SensorEntity):
|
class NUTSensor(CoordinatorEntity[DataUpdateCoordinator[dict[str, str]]], SensorEntity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user