ha_xiaomi_home icon indicating copy to clipboard operation
ha_xiaomi_home copied to clipboard

Feat:add missing parameter state_class

Open DoraTiger opened this issue 2 months ago • 1 comments

  1. 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
            }
        }
    }
}
  1. Modify the relevant logic to adapt to parameter modifications.

Relation Issue: #30

DoraTiger avatar Dec 17 '24 11:12 DoraTiger