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
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
const.py Add classes for new Homematic devicetypes/devices (HmIP-SMI, HmIP-DRSI1) (#57521) 2021-11-01 19:13:30 +01:00
cover.py
entity.py Add long-term statistics support for homematic sensors (#57396) 2021-11-08 11:40:01 +01:00
light.py
lock.py
manifest.json
notify.py
sensor.py Add long-term statistics support for homematic sensors (#57396) 2021-11-08 11:40:01 +01:00
services.yaml
switch.py