Skip to content

Commit

Permalink
⚒️️ improve for sensor (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 28, 2025
1 parent 9387009 commit fc15c77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/xiaomi_miot/core/miot_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ def use_desc(self, domain=None):

@property
def unit_of_measurement(self):
if self.value_list:
return None
name = self.name
unit = self.unit
aliases = {
Expand Down

0 comments on commit fc15c77

Please sign in to comment.