Fix non-thread-safe operation in powerview number (#130557)
This commit is contained in:
parent
4aad614497
commit
4200913d03
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue