Make template entities reloadable (#39075)

* Make template entities reloadable

* Address review items
This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-08-21 18:31:48 -05:00
1 parent 993088d26e
commit 83b9c6188d
20 files changed
+468 -43

No files matched your search

+3
View File
@@ -10,6 +10,7 @@ from homeassistant.const import (
STATE_ON,
STATE_UNAVAILABLE,
)
from homeassistant.core import CoreState
from homeassistant.setup import ATTR_COMPONENT, async_setup_component, setup_component
from tests.common import assert_setup_component, get_test_home_assistant
@@ -584,6 +585,8 @@ async def test_no_template_match_all(hass, caplog):
"""Test that we allow static templates."""
hass.states.async_set("sensor.test_sensor", "startup")
hass.state = CoreState.not_running
await async_setup_component(
hass,
"sensor",