Guard against non supported entities (#26941)

This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2019-09-27 08:49:51 +02:00
1 parent 9f6fade236
commit fc700c7937
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -48,7 +48,7 @@ async def test_send_add_or_update_message(hass, aioclient_mock):
)
await state_report.async_send_add_or_update_message(
hass, DEFAULT_CONFIG, ["binary_sensor.test_contact"]
hass, DEFAULT_CONFIG, ["binary_sensor.test_contact", "zwave.bla"]
)
assert len(aioclient_mock.mock_calls) == 1
@@ -75,7 +75,7 @@ async def test_send_delete_message(hass, aioclient_mock):
)
await state_report.async_send_delete_message(
hass, DEFAULT_CONFIG, ["binary_sensor.test_contact"]
hass, DEFAULT_CONFIG, ["binary_sensor.test_contact", "zwave.bla"]
)
assert len(aioclient_mock.mock_calls) == 1