-
- Downloads
Add condition to trigger template entities (#119689)
* Add conditions to trigger template entities * Add tests * Fix ruff error * Ruff * Apply suggestions from code review * Deduplicate * Tweak name used in debug message * Add and improve type annotations of modified code * Adjust typing * Adjust typing * Add typing and remove unused parameter * Adjust typing Co-authored-by:Martin Hjelmare <marhje52@gmail.com> * Adjust return type Co-authored-by:
Martin Hjelmare <marhje52@gmail.com> --------- Co-authored-by:
Erik Montnemery <erik@montnemery.com> Co-authored-by:
Martin Hjelmare <marhje52@gmail.com>
Showing
- homeassistant/components/automation/__init__.py 8 additions, 40 deletionshomeassistant/components/automation/__init__.py
- homeassistant/components/template/config.py 8 additions, 1 deletionhomeassistant/components/template/config.py
- homeassistant/components/template/const.py 1 addition, 0 deletionshomeassistant/components/template/const.py
- homeassistant/components/template/coordinator.py 42 additions, 7 deletionshomeassistant/components/template/coordinator.py
- homeassistant/helpers/condition.py 41 additions, 0 deletionshomeassistant/helpers/condition.py
- homeassistant/helpers/script.py 1 addition, 1 deletionhomeassistant/helpers/script.py
- tests/components/template/test_sensor.py 164 additions, 0 deletionstests/components/template/test_sensor.py
Loading
Please register or sign in to comment