Handle state is None in InfluxDB (#79609)
This commit is contained in:
parent
9c97ebbcfe
commit
051374d73e
2 changed files with 2 additions and 2 deletions
|
@ -557,7 +557,7 @@ async def test_event_listener_states(
|
|||
"""Test the event listener against ignored states."""
|
||||
handler_method = await _setup(hass, mock_client, config_ext, get_write_api)
|
||||
|
||||
for state_state in (1, "unknown", "", "unavailable"):
|
||||
for state_state in (1, "unknown", "", "unavailable", None):
|
||||
state = MagicMock(
|
||||
state=state_state,
|
||||
domain="fake",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue