OwnTracks robustness improvement

This commit is contained in:
Paulus Schoutsen committed 2015-10-03 10:29:00 -07:00
1 parent 8b5b580287
commit 8490d6126a
1 file changed
+1 -1
@@ -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('/')