mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Tado device_tracker exception when mobile device has geofencing enabled but location is currently unknown. (#6401)
This commit is contained in:
parent
1a139234af
commit
bc9f2d21c4
@ -142,7 +142,7 @@ class TadoDeviceScanner(DeviceScanner):
|
||||
|
||||
# Find devices that have geofencing enabled, and are currently at home.
|
||||
for mobile_device in tado_json:
|
||||
if 'location' in mobile_device:
|
||||
if mobile_device.get('location'):
|
||||
if mobile_device['location']['atHome']:
|
||||
device_id = mobile_device['id']
|
||||
device_name = mobile_device['name']
|
||||
|
Loading…
x
Reference in New Issue
Block a user