mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix proximity issue (#5109)
This commit is contained in:
parent
0ecd185f0d
commit
9e66755baf
@ -142,6 +142,10 @@ class Proximity(Entity):
|
|||||||
for device in self.proximity_devices:
|
for device in self.proximity_devices:
|
||||||
device_state = self.hass.states.get(device)
|
device_state = self.hass.states.get(device)
|
||||||
|
|
||||||
|
if device_state is None:
|
||||||
|
devices_to_calculate = True
|
||||||
|
continue
|
||||||
|
|
||||||
if device_state.state not in self.ignored_zones:
|
if device_state.state not in self.ignored_zones:
|
||||||
devices_to_calculate = True
|
devices_to_calculate = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user