Skip to content

Commit

Permalink
Upgrade locationsharinglib to 2.0.11 (#15902)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored and pvizeli committed Aug 9, 2018
1 parent 99c4c65 commit 39d19f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions homeassistant/components/device_tracker/google_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,30 @@
from homeassistant.helpers.typing import ConfigType
from homeassistant.util import slugify

REQUIREMENTS = ['locationsharinglib==2.0.7']
REQUIREMENTS = ['locationsharinglib==2.0.11']

_LOGGER = logging.getLogger(__name__)

CONF_MAX_GPS_ACCURACY = 'max_gps_accuracy'
ATTR_ADDRESS = 'address'
ATTR_FULL_NAME = 'full_name'
ATTR_LAST_SEEN = 'last_seen'
ATTR_NICKNAME = 'nickname'

CONF_MAX_GPS_ACCURACY = 'max_gps_accuracy'

CREDENTIALS_FILE = '.google_maps_location_sharing.cookies'

MIN_TIME_BETWEEN_SCANS = timedelta(seconds=30)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Optional(CONF_MAX_GPS_ACCURACY, default=100000): vol.Coerce(float),
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Optional(CONF_MAX_GPS_ACCURACY, default=100000): vol.Coerce(float),
})


def setup_scanner(hass, config: ConfigType, see, discovery_info=None):
"""Set up the scanner."""
"""Set up the Google Maps Location sharing scanner."""
scanner = GoogleMapsScanner(hass, config, see)
return scanner.success_init

Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ liveboxplaytv==2.0.2
lmnotify==0.0.4

# homeassistant.components.device_tracker.google_maps
locationsharinglib==2.0.7
locationsharinglib==2.0.11

# homeassistant.components.sensor.luftdaten
luftdaten==0.2.0
Expand Down

0 comments on commit 39d19f2

Please sign in to comment.