ha_xiaomi_home
ha_xiaomi_home copied to clipboard
Feat:add missing parameter state_class
- add optional parameter for SPEC_PROP_TRANS_MAP, in order to add default state_class and unit:
{
'entities':{
'<entity name>':{
'format': set<str>,
'access': set<str>
}
},
'properties': {
'<property instance name>':{
'device_class': str,
'entity': str,
'optional':{
'state_class': str,
'unit_of_measurement': str
}
}
}
}
- Modify the relevant logic to adapt to parameter modifications.
Relation Issue: #30