* Fixes to user-facing strings of `tplink`
- add missing hyphen to "auto-off" and "auto-update"
- sentence-case one overlooked word
* Update test_sensor.ambr
* Update test_switch.ambr
* Implemented coordinator (for Cloud integration)
* Optimized coordinator updates
* Finalizing
* Running ruff and ruff format
* Raise error if trying to instantiate coordinator for a AdaxLocal config
* Re-added data-handler for AdaxLocal integrations
* Added a coordinator for Local integrations
* mypy warnings
* Update homeassistant/components/adax/manifest.json
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
* Resolve mypy issues
* PR comments
- Explicit passing of config_entry to Coordinator base type
- Avoid duplicate storing of Coordinator data. Instead use self.data
- Remove try-catch and wrapping to UpdateFailed in _async_update_data
- Custom ConfigEntry type for passing coordinator via entry.runtime_data
* When changing HVAC_MODE update data via Coordinator to optimize
* Apply already loaded data for Climate entity directly in __init__
* Moved SCAN_INTERVAL into const.py
* Removed logging statements
* Remove unnecessary get_rooms() / get_status() functions
* Resolvning mypy issues
* Adding tests for coordinators
* Resolving review comments by joostlek
* Setup of Cloud devices with device_id
* Implement Climate tests for Adax
* Implementing assertions of UNAVAILABLE state
* Removed no longer needed method
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Mock Adax class instead of individual methods
* Mock config entry via fixture
* Load config entry data from .json fixture
* Hard code config_entry_data instead of .json file
* Removed obsolete .json-files
* Fix
* Fix
---------
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Use new (internal) cluster handler IDs in unit tests
* Always add a profile_id to created endpoints
* Use new library decimal formatting
* Implement the ENUM device class for sensors
* Use the suggested display precision hint
* Revert "Implement the ENUM device class for sensors"
This reverts commit d11ab268121b7ffe67c81e45fdc46004fb57a22a.
* Bump ZHA to 0.0.57
* Add strings for v2 quirk entities
* Use ZHA library diagnostics
* Update snapshot
* Revert ZHA change that reports a cover state of `open` if either lift or tilt axes are `open`
This is an interim change to address issues with some cover 'relay' type devices which falsely report support for both lift and tilt. In reality these only support one axes or the other, with users using yaml overrides to restrict functionality in HA.
Devices that genuinely support both movement axes will behave the same as they did prior to https://github.com/zigpy/zha/pull/376https://github.com/home-assistant/core/pull/141447
A subsequent PR will be made to allow users to override the covering type in a way that allows the entity handler to be aware of the configuration, calculating the state accordingly.
* Spelling mistake
---------
Co-authored-by: TheJulianJES <TheJulianJES@users.noreply.github.com>
Co-authored-by: Jack <46714706+jeverley@users.noreply.github.com>
* Add return energy statistics to Opower coordinator
* Add consumption and return cost statistics to Opower coordinator
* Rename return cost to compensation for clarity and consistency
* Use original cost stats for consumption cost
* Rename return cost to compensation
* Remove comment
* Raise issue for negative consumption/cost values in Opower statistics
* Migrate existing statistics and raise an issue
* Update strings.json
---------
Co-authored-by: tronikos <tronikos@users.noreply.github.com>
* Expose LitterHopper status for LR4
* Proper naming and icons
* Add simple tests
* fix test: lowercase enabled
* over-torque, not OT
* Don't use icon_fn for simple state map
* short not Short
* Better state names
* migrate climate attributes to own entities
* add a comment to make it searchable
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Apply suggestions from code review
* update snapshots
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Allow multiple config entries in Home Connect
* Config entry migration
* Create new entry if reauth flow is completed with other account
* Abort if different account on reauth
* Add light as entity platform on MQTT subentries
* Improve translation strings
* Rename to separate brightness
* Remove option to use mireds for color temperature
* Fix tests
* Add translation reference
* Correct reference
* Add flash and transition feature switches
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>