Bumped simplisafe-python to 3.1.11 (#17454)

* Bumped simplisafe-python to 3.1.10

* Updated requirements

* Updated requirements
pull/17439/merge
Aaron Bach 2018-10-14 14:26:44 -06:00 committed by GitHub
parent 1187e0aea5
commit b022dde622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View File

@ -23,7 +23,7 @@ from homeassistant.helpers import config_validation as cv
from .config_flow import configured_instances
from .const import DATA_CLIENT, DEFAULT_SCAN_INTERVAL, DOMAIN, TOPIC_UPDATE
REQUIREMENTS = ['simplisafe-python==3.1.7']
REQUIREMENTS = ['simplisafe-python==3.1.11']
_LOGGER = logging.getLogger(__name__)
@ -87,18 +87,17 @@ async def async_setup(hass, config):
async def async_setup_entry(hass, config_entry):
"""Set up SimpliSafe as config entry."""
from simplipy import API
from simplipy.errors import SimplipyError
from simplipy.errors import InvalidCredentialsError, SimplipyError
websession = aiohttp_client.async_get_clientsession(hass)
try:
simplisafe = await API.login_via_token(
config_entry.data[CONF_TOKEN], websession)
except InvalidCredentialsError:
_LOGGER.error('Invalid credentials provided')
return False
except SimplipyError as err:
if 403 in str(err):
_LOGGER.error('Invalid credentials provided')
return False
_LOGGER.error('Config entry failed: %s', err)
raise ConfigEntryNotReady

View File

@ -1346,7 +1346,7 @@ shodan==1.10.4
simplepush==1.1.4
# homeassistant.components.simplisafe
simplisafe-python==3.1.7
simplisafe-python==3.1.11
# homeassistant.components.sisyphus
sisyphus-control==2.1

View File

@ -216,7 +216,7 @@ ring_doorbell==0.2.1
rxv==0.5.1
# homeassistant.components.simplisafe
simplisafe-python==3.1.7
simplisafe-python==3.1.11
# homeassistant.components.sleepiq
sleepyq==0.6