mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add battery status in owntracks (#27686)
* Add battery status in owntracks * Remove trailing whitespaces
This commit is contained in:
parent
b22eb22358
commit
3e26b49cc2
@ -79,6 +79,8 @@ def _parse_see_args(message, subscribe_topic):
|
||||
kwargs["attributes"]["address"] = message["addr"]
|
||||
if "cog" in message:
|
||||
kwargs["attributes"]["course"] = message["cog"]
|
||||
if "bs" in message:
|
||||
kwargs["attributes"]["battery_status"] = message["bs"]
|
||||
if "t" in message:
|
||||
if message["t"] in ("c", "u"):
|
||||
kwargs["source_type"] = SOURCE_TYPE_GPS
|
||||
|
Loading…
x
Reference in New Issue
Block a user