* Add a syntax for merging lists of triggers
* Updating to the new syntax
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* fix suggestion
* update test and add comments
* not actually json
* move test to new file
* update tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Add ffmpeg proxy view
* Add tests
* Add proxy to media player
* Add proxy test
* Only allow one ffmpeg proc per device
* Incorporate feedback
* Fix tests
* address comments
* Fix test
* Update paths without auth const
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* Fix bugs when a lock is no longer returned by the API
* Changes requested during review
* Only mark unavailable if lock is not present
* Remove stale comment
* Remove over-judicious nullability checks
* Remove another unnecessary null check
* Add set_profile service for Vallox integration
* Merge profile constants, use str input for service
* add service test and some related refactoring
* Change service uom to 'minutes'
Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
* Update icons.js format after rebase
* Translate profile names for service
* Fix test using wrong dict
---------
Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
* Create an issue in the issue registry if deprecated config is found in configuration.yaml
* Add deprecation comments to functions that can be removed after deprecation period
* Add test for the creation of a deprecation issue
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Listen to reported events for stale check
* Always enable stale sensor tracking
There is no reason not to have this enabled
now that we track reported events for sensors.
* Remove default stale code
* Adjust for ruff change
* chore: Add tests for BSBLAN climate component
* fix return types
* fix MAC data
* chore: Update BSBLAN climate component tests
used setup from conftest added setup for farhenheit temp unit
* chore: Update BSBLAN climate component tests
use syrupy to compare results
* add test for temp_unit
* update climate tests
set current_temperature to None in test case. Is this the correct way for testing?
* chore: Update BSBLAN diagnostics to handle asynchronous data retrieval
* chore: Refactor BSBLAN conftest.py to simplify fixture and patching
* chore: Update BSBLAN climate component tests
100% test coverage
* chore: Update BSBLAN diagnostics to handle asynchronous data retrieval
* chore: Update snapshots
* Fix BSBLAN climate test for async_set_preset_mode
- Update test_async_set_preset_mode to correctly handle ServiceValidationError
- Check for specific translation key instead of full error message
- Ensure consistency between local tests and CI environment
- Import ServiceValidationError explicitly for clarity
* Update homeassistant/components/bsblan/entity.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* chore: Update BSBLAN conftest.py to simplify fixture and patching
* chore: Update BSBLAN integration setup function parameter name
* chore: removed set_static_value
* refactor: Improve BSBLANClimate async_set_preset_mode method
This commit refactors the async_set_preset_mode method in the BSBLANClimate class to improve code readability and maintainability. The method now checks if the HVAC mode is not set to AUTO and the preset mode is not NONE before raising a ServiceValidationError.
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* refactor: Improve tests
test_celsius_fahrenheit
test_climate_entity_properties
test_async_set_hvac_mode
test_async_set_preset_mode still broken. Not sure why hvac mode will not set. THis causes error with preset mode set
* update snapshot
* fix DOMAIN bsblan
* refactor: Improve BSBLANClimate async_set_data method
* refactor: fix last tests
* refactor: Simplify async_get_config_entry_diagnostics method
* refactor: Improve BSBLANClimate async_set_temperature method
This commit improves the async_set_temperature method in the BSBLANClimate class. It removes the unnecessary parameter "expected_result" and simplifies the code by directly calling the service to set the temperature. The method now correctly asserts that the thermostat method is called with the correct temperature.
* refactor: Add static data to async_get_config_entry_diagnostics
* refactor: Add static data to async_get_config_entry_diagnostics
right place
* refactor: Improve error message for setting preset mode
This commit updates the error message in the BSBLANClimate class when trying to set the preset mode.
* refactor: Improve tests
* Fix
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Added PlugState 3, that is coming with renault-api 0.2.7, it fixes#124682 HA ticket
* Added PlugState 3, that is coming with renault-api 0.2.7, it fixes#124682 HA ticket
* WIP
* * Add switch platform
* Add tests for switches
* Remove unnecessary block_till_done-s
* Test that entities get added in a disabled state separately
* Convert to parametrized test
* Use fixture to add entities enabled.
* Bring Nice G.O. up to platinum
* Switch to listen in coordinator
* Tests
* Remove parallel updates from coordinator
* Unsub from events on config entry unload
* Detect WS disconnection
* Tests
* Fix tests
* Set unsub to None after unsubbing
* Wait 5 seconds before setting update error to prevent excessive errors
* Tweaks
* More tweaks
* Tweaks part 2
* Potential test for hass stopping
* Improve reconnect handling and test on Homeassistant stop event
* Move event handler to entry init
* Patch const instead of asyncio.sleep
---------
Co-authored-by: jbouwh <jan@jbsoft.nl>