diff --git a/homeassistant/helpers/restore_state.py b/homeassistant/helpers/restore_state.py index 2f9f7991ca1..26b10882d09 100644 --- a/homeassistant/helpers/restore_state.py +++ b/homeassistant/helpers/restore_state.py @@ -203,7 +203,7 @@ def _encode_complex(value): _encode(key): _encode_complex(value) for key, value in value.items() } - elif isinstance(value, list): + if isinstance(value, list): return [_encode_complex(val) for val in value] new_value = _encode(value)