From 13859388c1895189e756be9393d96d5a2dbf99b4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 27 May 2018 20:16:47 +0200 Subject: [PATCH] Upgrade locationsharinglib to 2.0.7 (#14640) --- .../components/device_tracker/google_maps.py | 11 ++++++----- requirements_all.txt | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/device_tracker/google_maps.py b/homeassistant/components/device_tracker/google_maps.py index 3bf0cb0e126..5f06946fc44 100644 --- a/homeassistant/components/device_tracker/google_maps.py +++ b/homeassistant/components/device_tracker/google_maps.py @@ -4,19 +4,20 @@ Support for Google Maps location sharing. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.google_maps/ """ -import logging from datetime import timedelta +import logging import voluptuous as vol -import homeassistant.helpers.config_validation as cv from homeassistant.components.device_tracker import ( 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.typing import ConfigType +from homeassistant.util import slugify -REQUIREMENTS = ['locationsharinglib==2.0.2'] +REQUIREMENTS = ['locationsharinglib==2.0.7'] _LOGGER = logging.getLogger(__name__) @@ -70,7 +71,7 @@ class GoogleMapsScanner(object): def _update_info(self, now=None): for person in self.service.get_all_people(): try: - dev_id = 'google_maps_{0}'.format(person.id) + dev_id = 'google_maps_{0}'.format(slugify(person.id)) except TypeError: _LOGGER.warning("No location(s) shared with this account") return diff --git a/requirements_all.txt b/requirements_all.txt index d84e0c0d671..2e944f20132 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -515,7 +515,7 @@ liveboxplaytv==2.0.2 lmnotify==0.0.4 # homeassistant.components.device_tracker.google_maps -locationsharinglib==2.0.2 +locationsharinglib==2.0.7 # homeassistant.components.sensor.luftdaten luftdaten==0.2.0