mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Upgrade locationsharinglib to 2.0.7 (#14640)
This commit is contained in:
parent
2f4c5f949b
commit
13859388c1
@ -4,19 +4,20 @@ Support for Google Maps location sharing.
|
|||||||
For more details about this platform, please refer to the documentation at
|
For more details about this platform, please refer to the documentation at
|
||||||
https://home-assistant.io/components/device_tracker.google_maps/
|
https://home-assistant.io/components/device_tracker.google_maps/
|
||||||
"""
|
"""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.components.device_tracker import (
|
from homeassistant.components.device_tracker import (
|
||||||
PLATFORM_SCHEMA, SOURCE_TYPE_GPS)
|
PLATFORM_SCHEMA, SOURCE_TYPE_GPS)
|
||||||
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, ATTR_ID
|
from homeassistant.const import ATTR_ID, CONF_PASSWORD, CONF_USERNAME
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.event import track_time_interval
|
from homeassistant.helpers.event import track_time_interval
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
from homeassistant.util import slugify
|
||||||
|
|
||||||
REQUIREMENTS = ['locationsharinglib==2.0.2']
|
REQUIREMENTS = ['locationsharinglib==2.0.7']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ class GoogleMapsScanner(object):
|
|||||||
def _update_info(self, now=None):
|
def _update_info(self, now=None):
|
||||||
for person in self.service.get_all_people():
|
for person in self.service.get_all_people():
|
||||||
try:
|
try:
|
||||||
dev_id = 'google_maps_{0}'.format(person.id)
|
dev_id = 'google_maps_{0}'.format(slugify(person.id))
|
||||||
except TypeError:
|
except TypeError:
|
||||||
_LOGGER.warning("No location(s) shared with this account")
|
_LOGGER.warning("No location(s) shared with this account")
|
||||||
return
|
return
|
||||||
|
@ -515,7 +515,7 @@ liveboxplaytv==2.0.2
|
|||||||
lmnotify==0.0.4
|
lmnotify==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.device_tracker.google_maps
|
# homeassistant.components.device_tracker.google_maps
|
||||||
locationsharinglib==2.0.2
|
locationsharinglib==2.0.7
|
||||||
|
|
||||||
# homeassistant.components.sensor.luftdaten
|
# homeassistant.components.sensor.luftdaten
|
||||||
luftdaten==0.2.0
|
luftdaten==0.2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user