mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 23:55:07 +02:00
Ignore None state in state_change_event (#59485)
This commit is contained in:
@@ -155,6 +155,7 @@ class IntegrationSensor(RestoreEntity, SensorEntity):
|
||||
|
||||
if (
|
||||
old_state is None
|
||||
or new_state is None
|
||||
or old_state.state in (STATE_UNKNOWN, STATE_UNAVAILABLE)
|
||||
or new_state.state in (STATE_UNKNOWN, STATE_UNAVAILABLE)
|
||||
):
|
||||
|
Reference in New Issue
Block a user