parent
95cd2035b6
commit
168065b9bc
4 changed files with 8 additions and 5 deletions
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue