Set device_class on temperature sensors F-K (#52918)
* Set device_class on temperature sensors F-K * Fix juicenet sensor
This commit is contained in:
parent
646862ec96
commit
3e09787d85
8 changed files with 123 additions and 41 deletions
|
@ -9,6 +9,7 @@ from homeassistant.const import (
|
|||
ATTR_NAME,
|
||||
ATTR_UNIT_OF_MEASUREMENT,
|
||||
DEVICE_CLASS_BATTERY,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
PERCENTAGE,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
|
@ -44,7 +45,7 @@ async def async_setup_entry(
|
|||
ATTR_NAME: f"{device.name}",
|
||||
ATTR_ENTITY_ID: f"{device.ain}",
|
||||
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
|
||||
ATTR_DEVICE_CLASS: None,
|
||||
ATTR_DEVICE_CLASS: DEVICE_CLASS_TEMPERATURE,
|
||||
},
|
||||
coordinator,
|
||||
ain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue