Bump goalzero to 0.2.0 (#56613)

* Bump goalzero to 0.1.8

* bump

* recheck

* bump
This commit is contained in:
Robert Hillis 2021-09-24 14:18:14 -04:00 committed by GitHub
parent ac576a2bc6
commit a7d56d1c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 9 deletions

View File

@ -48,8 +48,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
name = entry.data[CONF_NAME]
host = entry.data[CONF_HOST]
session = async_get_clientsession(hass)
api = Yeti(host, hass.loop, session)
api = Yeti(host, async_get_clientsession(hass))
try:
await api.init_connect()
except exceptions.ConnectError as ex:

View File

@ -104,14 +104,11 @@ class GoalZeroFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
async def _async_try_connect(self, host: str) -> tuple[str | None, str | None]:
"""Try connecting to Goal Zero Yeti."""
try:
session = async_get_clientsession(self.hass)
api = Yeti(host, self.hass.loop, session)
api = Yeti(host, async_get_clientsession(self.hass))
await api.sysinfo()
except exceptions.ConnectError:
_LOGGER.error("Error connecting to device at %s", host)
return None, "cannot_connect"
except exceptions.InvalidHost:
_LOGGER.error("Invalid host at %s", host)
return None, "invalid_host"
except Exception: # pylint: disable=broad-except
_LOGGER.exception("Unexpected exception")

View File

@ -3,7 +3,7 @@
"name": "Goal Zero Yeti",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/goalzero",
"requirements": ["goalzero==0.1.7"],
"requirements": ["goalzero==0.2.0"],
"dhcp": [
{"hostname": "yeti*"}
],

View File

@ -718,7 +718,7 @@ glances_api==0.2.0
gntp==1.0.3
# homeassistant.components.goalzero
goalzero==0.1.7
goalzero==0.2.0
# homeassistant.components.google
google-api-python-client==1.6.4

View File

@ -426,7 +426,7 @@ gios==2.0.0
glances_api==0.2.0
# homeassistant.components.goalzero
goalzero==0.1.7
goalzero==0.2.0
# homeassistant.components.google
google-api-python-client==1.6.4