mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump goalzero to 0.2.0 (#56613)
* Bump goalzero to 0.1.8 * bump * recheck * bump
This commit is contained in:
parent
ac576a2bc6
commit
a7d56d1c3f
@ -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:
|
||||
|
@ -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")
|
||||
|
@ -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*"}
|
||||
],
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user