mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +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]
|
name = entry.data[CONF_NAME]
|
||||||
host = entry.data[CONF_HOST]
|
host = entry.data[CONF_HOST]
|
||||||
|
|
||||||
session = async_get_clientsession(hass)
|
api = Yeti(host, async_get_clientsession(hass))
|
||||||
api = Yeti(host, hass.loop, session)
|
|
||||||
try:
|
try:
|
||||||
await api.init_connect()
|
await api.init_connect()
|
||||||
except exceptions.ConnectError as ex:
|
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]:
|
async def _async_try_connect(self, host: str) -> tuple[str | None, str | None]:
|
||||||
"""Try connecting to Goal Zero Yeti."""
|
"""Try connecting to Goal Zero Yeti."""
|
||||||
try:
|
try:
|
||||||
session = async_get_clientsession(self.hass)
|
api = Yeti(host, async_get_clientsession(self.hass))
|
||||||
api = Yeti(host, self.hass.loop, session)
|
|
||||||
await api.sysinfo()
|
await api.sysinfo()
|
||||||
except exceptions.ConnectError:
|
except exceptions.ConnectError:
|
||||||
_LOGGER.error("Error connecting to device at %s", host)
|
|
||||||
return None, "cannot_connect"
|
return None, "cannot_connect"
|
||||||
except exceptions.InvalidHost:
|
except exceptions.InvalidHost:
|
||||||
_LOGGER.error("Invalid host at %s", host)
|
|
||||||
return None, "invalid_host"
|
return None, "invalid_host"
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
_LOGGER.exception("Unexpected exception")
|
_LOGGER.exception("Unexpected exception")
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Goal Zero Yeti",
|
"name": "Goal Zero Yeti",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/goalzero",
|
"documentation": "https://www.home-assistant.io/integrations/goalzero",
|
||||||
"requirements": ["goalzero==0.1.7"],
|
"requirements": ["goalzero==0.2.0"],
|
||||||
"dhcp": [
|
"dhcp": [
|
||||||
{"hostname": "yeti*"}
|
{"hostname": "yeti*"}
|
||||||
],
|
],
|
||||||
|
@ -718,7 +718,7 @@ glances_api==0.2.0
|
|||||||
gntp==1.0.3
|
gntp==1.0.3
|
||||||
|
|
||||||
# homeassistant.components.goalzero
|
# homeassistant.components.goalzero
|
||||||
goalzero==0.1.7
|
goalzero==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
google-api-python-client==1.6.4
|
google-api-python-client==1.6.4
|
||||||
|
@ -426,7 +426,7 @@ gios==2.0.0
|
|||||||
glances_api==0.2.0
|
glances_api==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.goalzero
|
# homeassistant.components.goalzero
|
||||||
goalzero==0.1.7
|
goalzero==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
google-api-python-client==1.6.4
|
google-api-python-client==1.6.4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user