apetrycki / daikinskyport

API for accessing a DaikinOne+ Thermostat
59 stars 26 forks source link

Define _attr_state_class when initializing a new sensor #113

Closed yuliwilliam closed 1 month ago

yuliwilliam commented 1 month ago

The _attr_state_class needs to be defined as the specified in the SENSOR_TYPES. This allows the SensorStateClass.MEASUREMEN sensors to collect statistics such as temperature, humidity, etc. The statistics can be used in statistic graph card.