diff --git a/custom_components/xiaomi_miot/core/miot_spec.py b/custom_components/xiaomi_miot/core/miot_spec.py index c2204f225..d06a0a92f 100644 --- a/custom_components/xiaomi_miot/core/miot_spec.py +++ b/custom_components/xiaomi_miot/core/miot_spec.py @@ -806,7 +806,7 @@ def state_class(self): 'tds_out': SensorStateClass.MEASUREMENT, 'filter_used_flow': SensorStateClass.TOTAL_INCREASING, } - if self.name in names: + if self.name in names and self.value_range: return names[self.name] return None