* 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>
* Use f-strings in integrations starting with "H"
* Use f-strings in integrations starting with "I"
* Use f-strings in integrations starting with "J"
* Use f-strings in integrations starting with "K"
* Use f-strings in integrations starting with "L"
* Fix lint error
* Use join instead of f-string in homekit_controller
* Use local variables with f-strings
* Fix lint error
* Escape the characters in f-string
* Sort imports with isort in homeworks light
* Fix pylint error
* Fix broken tests
* Fix broken tests v2
* Update entity.py
* Fix Black
* Fix Black
* Update entity.py
* Use new style python
* Simplify
* Allow multible attribute with different channels
* Black
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>