hass-core/tests
myztillx 6861bbed79
Add ecobee set_sensors_used_in_climate service (#102871)
* Add set_active_sensors Service

* Remove version bump from service addition commit

* Reviewer suggested changes

* Changed naming to be more clear of functionality

* Adjusted additional naming to follow new convention

* Updated to pass failing CI tests

* Fix typo

* Fix to pass CI

* Changed argument from climate_name to preset_mode and changed service error

* Made loop more clear and changed raised error to log msg

* Fix typo

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Removed code that was accidentally added back in and fixed mypy errors

* Add icon for service

* Added sensors as attributes and updated tests

* Revert changes made in #126587

* Added tests for remote_sensors and set_sensors_used_in_climate

* Changed back to load multiplatforms (#126587)

* Check for empty sensor list and negative tests for errors raised

* Added tests and fixed errors

* Add hass to class init to allow for device_registry lookup at startup and check for name changed by user

* Added tests to test the new functions

* Simplified code and fixed testing error for simplification

* Added freeze in test

* Fixed device filtering

* Simplified code section

* Maintains the ability to call `set_sensors_used_in_climate` function even is the user changes the device name from the ecobee app or thermostat without needing to reload home assistant.

* Update tests with new functionality. Changed thermostat identifier to a string, since that is what is provided via the ecobee api

* Changed function parameter

* Search for specific ecobee identifier

* Moved errors to strings.json

* Added test for sensor not on thermostat

* Improved tests and updated device check

* Added attributes to _unrecoreded_attributes

* Changed name to be more clear

* Improve error message and add test for added property

* Renamed variables for clarity

* Added device_id to available_sensors to make it easier on user to find it

---------

Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-10-21 16:21:56 +02:00
..
auth
components Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
fixtures
hassfest Allow github requirements specs in hassfest for non-core integrations (#124925) 2024-09-20 00:36:31 +02:00
helpers Push real binary sensor states to state machine in tests (#128894) 2024-10-21 16:19:25 +02:00
non_packaged_scripts
pylint Add pylint checks for fixture scope (#126723) 2024-09-25 15:27:57 +02:00
resources
script
scripts
snapshots Index config entry discovery_keys by discovery domain (#126563) 2024-09-23 21:48:11 +02:00
test_util Bump aiohttp to 3.10.6rc2 (#126468) 2024-09-24 08:51:08 +02:00
testing_config Change trigger platform key to trigger (#124357) 2024-09-25 14:19:58 +02:00
util Refactor unittest tests to use pytest (#127770) 2024-10-17 21:28:14 +02:00
__init__.py
common.py Align config flow reconfigure step test helper with frontend (#127329) 2024-10-03 10:21:23 +02:00
conftest.py Set autouse flag on session scope bluetooth fixture (#126589) 2024-09-24 08:43:32 +02:00
ignore_uncaught_exceptions.py
patch_recorder.py
patch_time.py
ruff.toml
syrupy.py Improve IssueRegistryItemSnapshot (#127949) 2024-10-09 10:57:04 +02:00
test_backports.py Add pylint rule for cached_property (#127482) 2024-10-03 17:53:55 -05:00
test_block_async_io.py
test_bootstrap.py
test_circular_imports.py
test_config.py
test_config_entries.py Prevent leak of current_entry context variable (#128145) 2024-10-16 18:02:37 +02:00
test_const.py Rename UnitOfConductivity enum members (#127919) 2024-10-08 14:44:01 +02:00
test_core.py Prevent callback decorator on coroutine functions (#126429) 2024-09-23 02:55:55 +02:00
test_data_entry_flow.py Add FlowManager.async_has_matching_flow (#126804) 2024-09-27 10:51:36 +02:00
test_exceptions.py
test_loader.py Simplify custom component loading (#128813) 2024-10-20 09:47:27 +02:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py Only raise missing integration issue for config entry integrations (#126654) 2024-09-24 18:26:01 +02:00
test_test_fixtures.py
typing.py