🏡 Open source home automation that puts local control and privacy first.
Find a file
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
.devcontainer Fix devContainer startup (#127042) 2024-10-08 09:32:26 +02:00
.github Bump github/codeql-action from 3.26.12 to 3.26.13 (#128420) 2024-10-15 13:52:46 +02:00
.vscode Generate translation in vscode taks: Code Coverage (#120434) 2024-07-07 17:05:44 +02:00
homeassistant Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
machine Fix Raspberry Pi utilities installation on Alpine 3.19 (#110463) 2024-02-13 15:07:37 +01:00
pylint Add pylint rule for cached_property (#127482) 2024-10-03 17:53:55 -05:00
rootfs Stop the Home Assistant Core container by default (#101105) 2023-09-30 10:43:07 +02:00
script Update ha-ffmpeg to 3.2.1 (#128769) 2024-10-19 14:41:16 +02:00
tests Add ecobee set_sensors_used_in_climate service (#102871) 2024-10-21 16:21:56 +02:00
.core_files.yaml Add tests/components/conftest.py to core files (#128425) 2024-10-15 10:34:54 +02:00
.dockerignore Add asdf tools dot file to gitignore (#128608) 2024-10-18 09:34:22 +02:00
.git-blame-ignore-revs Add ruff commit to git-blame-ignore-revs (#114229) 2024-03-26 12:16:55 +01:00
.gitattributes Ensure .pcm binary files do not have line endings changed (#91881) 2023-04-22 22:22:30 -04:00
.gitignore Add asdf tools dot file to gitignore (#128608) 2024-10-18 09:34:22 +02:00
.hadolint.yaml Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
.pre-commit-config.yaml Bump ruff to 0.7.0 (#128626) 2024-10-18 08:42:22 +02:00
.prettierignore Remove outdated prettier and yamllint azure-*.yml ignores (#112819) 2024-03-09 14:44:05 +02:00
.strict-typing Add Spotify to strict typing (#128846) 2024-10-20 15:51:06 +02:00
.yamllint Remove outdated prettier and yamllint azure-*.yml ignores (#112819) 2024-03-09 14:44:05 +02:00
build.yaml Update Home Assistant base image to 2024.06.1 (#120168) 2024-06-22 18:52:44 +02:00
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
CODE_OF_CONDUCT.md Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
codecov.yml Remove coveragerc (#121286) 2024-07-05 11:03:31 +02:00
CODEOWNERS Remove myself from roomba codeowners (#128858) 2024-10-21 09:10:07 +02:00
CONTRIBUTING.md Use core GitHub URL in contributing guidelines (#41083) 2020-10-02 20:42:33 +02:00
Dockerfile Bump uv to 0.4.22 (#128518) 2024-10-16 18:23:24 +02:00
Dockerfile.dev Ensure write access to hassrelease data folder (#124573) 2024-08-25 17:24:06 +02:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in Move remaining keys to setup.cfg (#65154) 2022-01-28 20:18:09 -08:00
mypy.ini Add Spotify to strict typing (#128846) 2024-10-20 15:51:06 +02:00
pyproject.toml Update attrs to 24.2.0 (#126656) 2024-10-20 15:48:42 +02:00
README.rst Add Open Home Foundation logo to README (#127111) 2024-09-30 16:49:30 +02:00
requirements.txt Update attrs to 24.2.0 (#126656) 2024-10-20 15:48:42 +02:00
requirements_all.txt Bump pyopenweathermap to v0.2.1 (#128892) 2024-10-21 16:20:39 +02:00
requirements_test.txt Update mypy-dev to 1.13.0a1 (#128548) 2024-10-17 10:30:42 +02:00
requirements_test_all.txt Bump pyopenweathermap to v0.2.1 (#128892) 2024-10-21 16:20:39 +02:00
requirements_test_pre_commit.txt Bump ruff to 0.7.0 (#128626) 2024-10-18 08:42:22 +02:00

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://demo.home-assistant.io>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-integrations|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

|ohf-logo|

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://www.home-assistant.io/join-chat/
.. |screenshot-states| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-states.png
   :target: https://demo.home-assistant.io
.. |screenshot-integrations| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-integrations.png
   :target: https://home-assistant.io/integrations/
.. |ohf-logo| image:: https://www.openhomefoundation.org/badges/home-assistant.png
   :alt: Home Assistant - A project from the Open Home Foundation
   :target: https://www.openhomefoundation.org/