Log warning when entities referenced in service call not found (#31427)
* Raise entities not found error * Make it a warning, not an error * Add support for MATCH_ENTITY_NONE * Fix lint * Fix tests
This commit is contained in:
1 parent
201ea2557e
commit
f41623ca64
16 files changed
+339
-89
No files matched your search
@@ -65,7 +65,10 @@ class TestTTSGooglePlatform:
|
||||
self.hass.services.call(
|
||||
tts.DOMAIN,
|
||||
"google_translate_say",
|
||||
{tts.ATTR_MESSAGE: "90% of I person is on front of your door."},
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: "90% of I person is on front of your door.",
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
@@ -89,7 +92,10 @@ class TestTTSGooglePlatform:
|
||||
self.hass.services.call(
|
||||
tts.DOMAIN,
|
||||
"google_translate_say",
|
||||
{tts.ATTR_MESSAGE: "90% of I person is on front of your door."},
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: "90% of I person is on front of your door.",
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
@@ -115,6 +121,7 @@ class TestTTSGooglePlatform:
|
||||
tts.DOMAIN,
|
||||
"google_say",
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: "90% of I person is on front of your door.",
|
||||
tts.ATTR_LANGUAGE: "de",
|
||||
},
|
||||
@@ -139,7 +146,10 @@ class TestTTSGooglePlatform:
|
||||
self.hass.services.call(
|
||||
tts.DOMAIN,
|
||||
"google_translate_say",
|
||||
{tts.ATTR_MESSAGE: "90% of I person is on front of your door."},
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: "90% of I person is on front of your door.",
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
@@ -161,7 +171,10 @@ class TestTTSGooglePlatform:
|
||||
self.hass.services.call(
|
||||
tts.DOMAIN,
|
||||
"google_translate_say",
|
||||
{tts.ATTR_MESSAGE: "90% of I person is on front of your door."},
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: "90% of I person is on front of your door.",
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
@@ -193,6 +206,7 @@ class TestTTSGooglePlatform:
|
||||
tts.DOMAIN,
|
||||
"google_say",
|
||||
{
|
||||
"entity_id": "media_player.something",
|
||||
tts.ATTR_MESSAGE: (
|
||||
"I person is on front of your door."
|
||||
"I person is on front of your door."
|
||||
@@ -203,7 +217,7 @@ class TestTTSGooglePlatform:
|
||||
"I person is on front of your door."
|
||||
"I person is on front of your door."
|
||||
"I person is on front of your door."
|
||||
)
|
||||
),
|
||||
},
|
||||
)
|
||||
self.hass.block_till_done()
|
||||
|
||||
Reference in new issue
Block a user