Version bump of aioautomatic (#7300)

* Version bump of aioautomatic

* Update requirements_all.txt
This commit is contained in:
Adam Mills 2017-04-25 23:21:16 -04:00 committed by Paulus Schoutsen
parent 615691efc3
commit 00f034cef2
2 changed files with 5 additions and 3 deletions

View file

@ -17,7 +17,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.event import async_track_time_interval
REQUIREMENTS = ['aioautomatic==0.1.1']
REQUIREMENTS = ['aioautomatic==0.2.0']
_LOGGER = logging.getLogger(__name__)
@ -27,6 +27,8 @@ CONF_DEVICES = 'devices'
DEFAULT_TIMEOUT = 5
SCOPE = ['location', 'vehicle:profile', 'trip']
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_CLIENT_ID): cv.string,
vol.Required(CONF_SECRET): cv.string,
@ -49,7 +51,7 @@ def async_setup_scanner(hass, config, async_see, discovery_info=None):
request_kwargs={'timeout': DEFAULT_TIMEOUT})
try:
session = yield from client.create_session_from_password(
config[CONF_USERNAME], config[CONF_PASSWORD])
SCOPE, config[CONF_USERNAME], config[CONF_PASSWORD])
data = AutomaticData(hass, session, config[CONF_DEVICES], async_see)
except aioautomatic.exceptions.AutomaticError as err:
_LOGGER.error(str(err))