Set ping data to None instead of False (#65013)

pull/65052/head
Joakim Sørensen 2022-01-27 10:03:45 +01:00 committed by GitHub
parent 0cabf3e577
commit b086c8d898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class PingBinarySensor(RestoreEntity, BinarySensorEntity):
self._available = True
if last_state is None or last_state.state != STATE_ON:
self._ping.data = False
self._ping.data = None
return
attributes = last_state.attributes