Update tesla_powerwall to 0.3.3 (#41482)

This commit is contained in:
jrester 2020-10-08 15:26:44 +02:00 committed by GitHub
parent 07d208f1bc
commit 734972f876
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 38 additions and 42 deletions

View file

@ -1,7 +1,7 @@
"""Config flow for Tesla Powerwall integration."""
import logging
from tesla_powerwall import APIChangedError, Powerwall, PowerwallUnreachableError
from tesla_powerwall import MissingAttributeError, Powerwall, PowerwallUnreachableError
import voluptuous as vol
from homeassistant import config_entries, core, exceptions
@ -27,7 +27,7 @@ async def validate_input(hass: core.HomeAssistant, data):
site_info = await hass.async_add_executor_job(power_wall.get_site_info)
except PowerwallUnreachableError as err:
raise CannotConnect from err
except APIChangedError as err:
except MissingAttributeError as err:
# Only log the exception without the traceback
_LOGGER.error(str(err))
raise WrongVersion from err