Fix issue where Number still would send force_update to super method (#58110)

This commit is contained in:
Robert Svensson 2021-10-20 17:06:27 +02:00 committed by GitHub
parent b301ab25a3
commit 326a302c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,11 +104,11 @@ class DeconzNumber(DeconzDevice, NumberEntity):
self._attr_step = description.step
@callback
def async_update_callback(self, force_update: bool = False) -> None:
def async_update_callback(self) -> None:
"""Update the number value."""
keys = {self.entity_description.update_key, "reachable"}
if force_update or self._device.changed_keys.intersection(keys):
super().async_update_callback(force_update=force_update)
if self._device.changed_keys.intersection(keys):
super().async_update_callback()
@property
def value(self) -> float: