Commit Graph

16 Commits (9de90ca7d522c8cdbf86c7abfa0027cba4938fe7)

Author SHA1 Message Date
Sid 2cc916db6d
Replace pylint broad-except with Ruff BLE001 () 2024-05-07 14:00:27 +02:00
Marc Mueller 8809d3aa88
Add empty line after module docstring [g-i] () 2024-03-08 08:52:48 -05:00
epenet 2a8109304f
Use _attr_should_poll in components [h-i] () 2022-08-26 10:20:38 +02:00
Franck Nijhof 8f4caf4141
Clean up accessing event helpers via hass () 2022-05-17 19:36:29 +02:00
Sven Naumann 94fde3bf23
Prioritize channels for homematic event subscriptions ()
* Prioritize SENSORNODE for event callbacks

* Ran black

* Use lazy % formatting for logging

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-30 16:28:23 +02:00
chriss158 5151c4d99b
Add long-term statistics support for homematic sensors ()
* 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
Bram Kragten 86d24bec75
Update icons for MDI 6 () 2021-09-13 19:29:38 +02:00
Erik Montnemery 346a724ac3
Mark base components' state_attribute @final, rename others to extra_state_attributes ()
* Mark base state_attributes @final, rename others to extra_state_attributes

* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
Erik Montnemery 14a59d290a
Update integrations j-o to override extra_state_attributes() () 2021-03-11 20:11:25 +01:00
tkdrob da67cde369
Use core constants for homematic () 2021-02-09 12:02:53 +01:00
J. Nick Koston 1e256e6122
Remove unneeded async_add_job from homematic () 2020-10-16 09:24:12 -05:00
springstan 916178925e
Return attribute dict directly without temporary variable v3 () 2020-10-08 21:33:08 +02:00
springstan 038c05d0ee
Return attribute dict directly without temporary variable () 2020-10-05 12:51:48 +02:00
springstan 157f972d72
Use f-strings in integrations starting with "H" - "L" ()
* 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
2020-02-28 12:39:29 +01:00
Daniel Perna 9902b648fb
Add channel-mapping for HomeMatic ()
* 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>
2020-01-29 12:02:36 +01:00
Pascal Vizeli ced6df158b
Refactor HomeMatic / Fix issue with 0.104/dev ()
* Refactor HomeMatic / Fix issue with 0.104/dev

* Fix lock
2020-01-14 11:26:59 +01:00