Skip to content

Commit

Permalink
📊 improve for statistics (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Oct 24, 2024
1 parent d76d93e commit 50510a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/core/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50510a6

Please sign in to comment.