Upgrade locationsharinglib to 2.0.11 (#15902)
This commit is contained in:
parent
99c4c65f69
commit
39d19f2183
2 changed files with 7 additions and 6 deletions
|
@ -17,29 +17,30 @@ 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
|
from homeassistant.util import slugify
|
||||||
|
|
||||||
REQUIREMENTS = ['locationsharinglib==2.0.7']
|
REQUIREMENTS = ['locationsharinglib==2.0.11']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONF_MAX_GPS_ACCURACY = 'max_gps_accuracy'
|
|
||||||
ATTR_ADDRESS = 'address'
|
ATTR_ADDRESS = 'address'
|
||||||
ATTR_FULL_NAME = 'full_name'
|
ATTR_FULL_NAME = 'full_name'
|
||||||
ATTR_LAST_SEEN = 'last_seen'
|
ATTR_LAST_SEEN = 'last_seen'
|
||||||
ATTR_NICKNAME = 'nickname'
|
ATTR_NICKNAME = 'nickname'
|
||||||
|
|
||||||
|
CONF_MAX_GPS_ACCURACY = 'max_gps_accuracy'
|
||||||
|
|
||||||
CREDENTIALS_FILE = '.google_maps_location_sharing.cookies'
|
CREDENTIALS_FILE = '.google_maps_location_sharing.cookies'
|
||||||
|
|
||||||
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=30)
|
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=30)
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
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_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):
|
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)
|
scanner = GoogleMapsScanner(hass, config, see)
|
||||||
return scanner.success_init
|
return scanner.success_init
|
||||||
|
|
||||||
|
|
|
@ -533,7 +533,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.7
|
locationsharinglib==2.0.11
|
||||||
|
|
||||||
# homeassistant.components.sensor.luftdaten
|
# homeassistant.components.sensor.luftdaten
|
||||||
luftdaten==0.2.0
|
luftdaten==0.2.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue