hass-core/homeassistant
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 Make FlowHandler.context a typed dict (#126291) 2024-10-08 12:18:45 +02:00
backports Add pylint rule for cached_property (#127482) 2024-10-03 17:53:55 -05:00
brands Remove the Google Domains integration (#127278) 2024-10-02 13:58:19 +02:00
components Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
generated Remove deprecated panel_iframe integration (#128532) 2024-10-16 21:34:43 +02:00
helpers Improve entity cached attributes (#128876) 2024-10-21 10:29:01 +02:00
scripts
util Always use uv from virtual environment at runtime (#128371) 2024-10-16 19:42:25 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py
config_entries.py Use reauth helpers in google_mail (#128584) 2024-10-18 09:04:55 +02:00
const.py Rename UnitOfConductivity enum members (#127919) 2024-10-08 14:44:01 +02:00
core.py Restore __slots__ to core objects (#127441) 2024-10-03 22:23:47 +02:00
data_entry_flow.py Make FlowHandler.context a typed dict (#126291) 2024-10-08 12:18:45 +02:00
exceptions.py
loader.py Simplify custom component loading (#128813) 2024-10-20 09:47:27 +02:00
package_constraints.txt Bump habluetooth to 3.6.0 (#128815) 2024-10-21 09:45:24 +02:00
py.typed
requirements.py
runner.py
setup.py Only raise missing integration issue for config entry integrations (#126654) 2024-09-24 18:26:01 +02:00
strings.json