core/tests/components/template
Thomas Hollstegge 5de21375c0
Make sure groups are initialized before template sensors (#37766)
* Make sure groups are initialized before template sensors

This way users may use the `expand` function in templates to expand
groups and have HA listen for changes to group members.

Fixes #35872

* Patch async_setup_platform instead of async_setup

* Cleanup

* Use an event to avoid sleep

* Update tests/components/template/test_sensor.py

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-08-08 21:34:14 -05:00
..
__init__.py Consolidate all platforms that have tests (#22109) 2019-03-18 23:07:39 -07:00
test_alarm_control_panel.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_binary_sensor.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_cover.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_fan.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_light.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_lock.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_sensor.py Make sure groups are initialized before template sensors (#37766) 2020-08-08 21:34:14 -05:00
test_switch.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00
test_vacuum.py Add optional unique_id attribute to the template platforms (#38011) 2020-08-01 12:45:55 -10:00