Index entities by domain for entity services (#106759)
This commit is contained in:
parent
bf0d891f68
commit
09b65f14b9
6 changed files with 63 additions and 60 deletions
|
@ -1406,7 +1406,9 @@ def test_resolve_engine(hass: HomeAssistant, setup: str, engine_id: str) -> None
|
|||
|
||||
with patch.dict(
|
||||
hass.data[tts.DATA_TTS_MANAGER].providers, {}, clear=True
|
||||
), patch.dict(hass.data[tts.DOMAIN]._platforms, {}, clear=True):
|
||||
), patch.dict(hass.data[tts.DOMAIN]._platforms, {}, clear=True), patch.dict(
|
||||
hass.data[tts.DOMAIN]._entities, {}, clear=True
|
||||
):
|
||||
assert tts.async_resolve_engine(hass, None) is None
|
||||
|
||||
with patch.dict(hass.data[tts.DATA_TTS_MANAGER].providers, {"cloud": object()}):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue