mirror of
https://github.com/home-assistant/core.git
synced 2026-09-10 18:24:46 -05:00
Set ping data to None instead of False (#65013)
This commit is contained in:
committed by
Paulus Schoutsen
parent
c831270262
commit
03e369dc86
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user