hass-core/homeassistant/components/homematic
chriss158 5151c4d99b
Add long-term statistics support for homematic sensors (#57396)
* Add long-term statistics support for homematic

* Refactor cast list to SensorEntityDescription dict

Additional:
- Gas power, gas energy counter, air pressure and voltage uses long-term-statistics
- Gas power, gas energy counter uses device class gas
- Voltage uses device class voltage
- air pressure uses device class pressure

* Refactor expensive loop to separate dictionarys

* Use entity description property + fix humidity sensor

* Log missing sensor descriptions

* Use state class measurement for illumination sensors

* Move sensor entity desc missing warning to setup_platform

* Set type for hmdevice and homematic to fix mypy error

* Use EntityDescription instead of SensorEntityDescription

* Update entity.py

* fix type

* Update climate.py

* fix v2

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-11-08 11:40:01 +01:00
..
__init__.py Update __init__.py (#48659) 2021-04-07 15:51:35 +02:00
binary_sensor.py Add classes for new Homematic devicetypes/devices (HmIP-SMI, HmIP-DRSI1) (#57521) 2021-11-01 19:13:30 +01:00
climate.py Use assignment expressions 27 (#58188) 2021-10-22 11:29:21 +02:00
const.py Add classes for new Homematic devicetypes/devices (HmIP-SMI, HmIP-DRSI1) (#57521) 2021-11-01 19:13:30 +01:00
cover.py Collection of changing entity properties to class attributes (#51248) 2021-05-31 10:50:11 +02:00
entity.py Add long-term statistics support for homematic sensors (#57396) 2021-11-08 11:40:01 +01:00
light.py Fix Homematic transition function on light devices with multiple channels (#45725) 2021-03-19 12:36:03 +01:00
lock.py
manifest.json Update pyhomematic to 0.1.76 (#58136) 2021-10-21 08:21:48 +02:00
notify.py
sensor.py Add long-term statistics support for homematic sensors (#57396) 2021-11-08 11:40:01 +01:00
services.yaml Wrap up selectors (#50794) 2021-05-25 14:45:17 +02:00
switch.py