Remove update call from init in ViCare integration (#124905)

fix
pull/124894/head^2
Christopher Fenner 2024-08-30 10:50:18 +02:00 committed by GitHub
parent 252f05e0f7
commit cc4340b80c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -932,7 +932,9 @@ async def async_setup_entry(
await hass.async_add_executor_job(
_build_entities,
device_list,
)
),
# run update to have device_class set depending on unit_of_measurement
True,
)
@ -950,8 +952,6 @@ class ViCareSensor(ViCareEntity, SensorEntity):
"""Initialize the sensor."""
super().__init__(device_config, api, description.key)
self.entity_description = description
# run update to have device_class set depending on unit_of_measurement
self.update()
@property
def available(self) -> bool: