Remove update_before_add from nut sensors (#111032)
This commit is contained in:
parent
f295382c92
commit
8e9946afc9
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue