mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
Tado device_tracker exception when mobile device has geofencing enabled but location is currently unknown. (#6401)
This commit is contained in:
committed by
Pascal Vizeli
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']
|
||||
|
Reference in New Issue
Block a user