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>
This commit is contained in:
1 parent
34e2a1825b
commit
5de21375c0
2 files changed
+47
-2
No files matched your search
@@ -3,5 +3,6 @@
|
||||
"name": "Template",
|
||||
"documentation": "https://www.home-assistant.io/integrations/template",
|
||||
"codeowners": ["@PhracturedBlue", "@tetienne"],
|
||||
"quality_scale": "internal"
|
||||
"quality_scale": "internal",
|
||||
"after_dependencies": ["group"]
|
||||
}
|
||||
Reference in new issue
Block a user