mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix non-thread-safe operation in powerview number (#130557)
This commit is contained in:
@@ -95,7 +95,7 @@ class PowerViewNumber(ShadeEntity, RestoreNumber):
|
|||||||
self.entity_description = description
|
self.entity_description = description
|
||||||
self._attr_unique_id = f"{self._attr_unique_id}_{description.key}"
|
self._attr_unique_id = f"{self._attr_unique_id}_{description.key}"
|
||||||
|
|
||||||
def set_native_value(self, value: float) -> None:
|
async def async_set_native_value(self, value: float) -> None:
|
||||||
"""Update the current value."""
|
"""Update the current value."""
|
||||||
self._attr_native_value = value
|
self._attr_native_value = value
|
||||||
self.entity_description.store_value_fn(self.coordinator, self._shade.id, value)
|
self.entity_description.store_value_fn(self.coordinator, self._shade.id, value)
|
||||||
|
Reference in New Issue
Block a user