mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Handle Share off for events in OwnTracks app (#1737)
This commit is contained in:
parent
29c30861bf
commit
a7f80608c6
@ -80,6 +80,11 @@ def setup_scanner(hass, config, see):
|
|||||||
if not isinstance(data, dict) or data.get('_type') != 'transition':
|
if not isinstance(data, dict) or data.get('_type') != 'transition':
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if data.get('desc') is None:
|
||||||
|
_LOGGER.error(
|
||||||
|
"Location missing from `enter/exit` message - "
|
||||||
|
"please turn `Share` on in OwnTracks app")
|
||||||
|
return
|
||||||
# OwnTracks uses - at the start of a beacon zone
|
# OwnTracks uses - at the start of a beacon zone
|
||||||
# to switch on 'hold mode' - ignore this
|
# to switch on 'hold mode' - ignore this
|
||||||
location = data['desc'].lstrip("-")
|
location = data['desc'].lstrip("-")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user