Fix docstrings in mobile app device tracker (#97963)
parent
a4721e9b36
commit
d56484e2d6
|
@ -1,4 +1,4 @@
|
||||||
"""Device tracker platform that adds support for OwnTracks over MQTT."""
|
"""Device tracker for Mobile app."""
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
ATTR_BATTERY,
|
ATTR_BATTERY,
|
||||||
ATTR_GPS,
|
ATTR_GPS,
|
||||||
|
@ -35,7 +35,7 @@ ATTR_KEYS = (ATTR_ALTITUDE, ATTR_COURSE, ATTR_SPEED, ATTR_VERTICAL_ACCURACY)
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up OwnTracks based off an entry."""
|
"""Set up Mobile app based off an entry."""
|
||||||
entity = MobileAppEntity(entry)
|
entity = MobileAppEntity(entry)
|
||||||
async_add_entities([entity])
|
async_add_entities([entity])
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ class MobileAppEntity(TrackerEntity, RestoreEntity):
|
||||||
"""Represent a tracked device."""
|
"""Represent a tracked device."""
|
||||||
|
|
||||||
def __init__(self, entry, data=None):
|
def __init__(self, entry, data=None):
|
||||||
"""Set up OwnTracks entity."""
|
"""Set up Mobile app entity."""
|
||||||
self._entry = entry
|
self._entry = entry
|
||||||
self._data = data
|
self._data = data
|
||||||
self._dispatch_unsub = None
|
self._dispatch_unsub = None
|
||||||
|
|
Loading…
Reference in New Issue