mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
OwnTracks robustness improvement
This commit is contained in:
parent
8b5b580287
commit
8490d6126a
@ -33,7 +33,7 @@ def setup_scanner(hass, config, see):
|
||||
'Unable to parse payload as JSON: %s', payload)
|
||||
return
|
||||
|
||||
if data.get('_type') != 'location':
|
||||
if not isinstance(data, dict) or data.get('_type') != 'location':
|
||||
return
|
||||
|
||||
parts = topic.split('/')
|
||||
|
Loading…
x
Reference in New Issue
Block a user