hass-core/homeassistant/components/ecobee
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
..
__init__.py Remove deprecated notify service in ecobee (#128177) 2024-10-11 18:21:28 +02:00
binary_sensor.py Fix implicit-return in ecobee (#122832) 2024-07-30 15:33:57 +02:00
climate.py Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
config_flow.py Mark integrations as single_config_entry in manifest [a-i] (#128189) 2024-10-12 08:59:57 +02:00
const.py Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
entity.py Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
humidifier.py Add current_humidity to Ecobee humidifier (#114753) 2024-04-05 21:54:40 +02:00
icons.json Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
manifest.json Mark integrations as single_config_entry in manifest [a-i] (#128189) 2024-10-12 08:59:57 +02:00
notify.py Remove deprecated notify service in ecobee (#128177) 2024-10-11 18:21:28 +02:00
number.py Add update_without_throttle to ecobee number (#116504) 2024-05-10 21:54:28 +02:00
sensor.py Fix implicit-return in ecobee (#122832) 2024-07-30 15:33:57 +02:00
services.yaml Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
strings.json Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
switch.py Create auxHeatOnly switch in Ecobee integration (#116323) 2024-06-22 16:44:43 +02:00
util.py Add ecobee indefinite away preset, remove unusable/broken presets (#108636) 2024-03-22 22:45:54 +01:00
weather.py Fix up ecobee windspeed unit (#119870) 2024-06-18 07:58:00 +02:00