mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fixed handling of zero values in TuyaNumberEntity (#60393)
This commit is contained in:
parent
3f741d4295
commit
061691508b
@ -286,7 +286,7 @@ class TuyaNumberEntity(TuyaEntity, NumberEntity):
|
||||
value = self.device.status.get(self.entity_description.key)
|
||||
|
||||
# Scale integer/float value
|
||||
if value and isinstance(self._type_data, IntegerTypeData):
|
||||
if value is not None and isinstance(self._type_data, IntegerTypeData):
|
||||
return self._type_data.scale_value(value)
|
||||
|
||||
return None
|
||||
|
Loading…
x
Reference in New Issue
Block a user