* Improve Voip pipeline stability
It appears the pipeline is being unexpectedly cancelled in some
instances. In order to mitigate this issue hang ups will be detected
using a separate task rather than relying on timeouts in the STT read
method. Also reading STT events will be retried once if it is cancelled.
The pipeline will also catch and log any CancelledErrors to help with
further debugging.
* Update Voip tests
* Remove unnecessary changes
Remove unnecessary logging and cancelled error handling in wyoming STT.
* Remove comment about clearing system prompt
The test no longer checks for clearing the system prompt. Since that
logic exists completely in the assist_satellite component I think it is
reasonable to only test that logic in the unit tests for that component.
* Re-raise cancellation
Re-raise CancelledError if the current task is cancelling in the check hangup task
Co-authored-by: J. Nick Koston <nick@koston.org>
* Re-raise CancelledError in pipeline as well
* Fix formatting issue
* Remove unnecessary logging
* Add MockResultStream import to tests
This was presumably missed while merging
* Cancel check hangup task on disconnect
* Add myself as codeowner for VoIP
* Update CODEOWNERS
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* feat: raise execption on hvac mode while device is locked
* fix: test for setting hvac mode while device is locked.
* feat: update translation
* feat: add separate translations for HVAC and temperature
* fix: test cases
* fix: test cases for test_set_preset_mode_boost
* rev: code review
* rev: exception string
* feat: updated error message and added helper function
* Update homeassistant/components/fritzbox/strings.json
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* fix: translation key
* remove check_active_or_lock_mode from async_set_preset_mode
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
* Add support for WMS roller shutters and blinds
* Add test variants for WMS device types and their diagnostics
* Add test variants for cover movement of WMS device types
* Move device entry tests to test_init and avoid snapshot list
Suggested-by: joostlek
* 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>
* 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