Skip to content

Commit

Permalink
🔧 migrate device_class to enums (#975)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jan 4, 2023
1 parent 247b2c8 commit 2a92d7f
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 @@ -772,7 +772,7 @@ def device_class(self):
ret = None
name = self.full_name
props = {
'atmospheric_pressure': SensorDeviceClass.ATMOSPHERIC_PRESSURE,
'atmospheric_pressure': SensorDeviceClass.PRESSURE,
'temperature': SensorDeviceClass.TEMPERATURE,
'relative_humidity': SensorDeviceClass.HUMIDITY,
'humidity': SensorDeviceClass.HUMIDITY,
Expand Down

0 comments on commit 2a92d7f

Please # to comment.