Update Warrant (#11101)

* Update Warrant

* Lint
This commit is contained in:
Paulus Schoutsen 2017-12-12 21:12:41 -08:00 committed by GitHub
parent 95cd2035b6
commit 168065b9bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View file

@ -16,7 +16,7 @@ from homeassistant.components.alexa import smart_home
from . import http_api, iot
from .const import CONFIG_DIR, DOMAIN, SERVERS
REQUIREMENTS = ['warrant==0.5.0']
REQUIREMENTS = ['warrant==0.6.1']
_LOGGER = logging.getLogger(__name__)

View file

@ -68,11 +68,14 @@ def register(cloud, email, password):
from botocore.exceptions import ClientError
cognito = _cognito(cloud)
# Workaround for bug in Warrant. PR with fix:
# https://github.com/capless/warrant/pull/82
cognito.add_base_attributes()
try:
if cloud.cognito_email_based:
cognito.register(email, password, email=email)
cognito.register(email, password)
else:
cognito.register(_generate_username(email), password, email=email)
cognito.register(_generate_username(email), password)
except ClientError as err:
raise _map_aws_exception(err)

View file

@ -1149,7 +1149,7 @@ wakeonlan==0.2.2
waqiasync==1.0.0
# homeassistant.components.cloud
warrant==0.5.0
warrant==0.6.1
# homeassistant.components.media_player.gpmdp
websocket-client==0.37.0

View file

@ -182,7 +182,7 @@ vultr==0.1.2
wakeonlan==0.2.2
# homeassistant.components.cloud
warrant==0.5.0
warrant==0.6.1
# homeassistant.components.sensor.yahoo_finance
yahoo-finance==1.4.0