Skip to content

Commit a7d56d1

Browse files
authoredSep 24, 2021
Bump goalzero to 0.2.0 (home-assistant#56613)
* Bump goalzero to 0.1.8 * bump * recheck * bump
1 parent ac576a2 commit a7d56d1

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed
 

‎homeassistant/components/goalzero/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
4848
name = entry.data[CONF_NAME]
4949
host = entry.data[CONF_HOST]
5050

51-
session = async_get_clientsession(hass)
52-
api = Yeti(host, hass.loop, session)
51+
api = Yeti(host, async_get_clientsession(hass))
5352
try:
5453
await api.init_connect()
5554
except exceptions.ConnectError as ex:

‎homeassistant/components/goalzero/config_flow.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,11 @@ async def async_step_user(
104104
async def _async_try_connect(self, host: str) -> tuple[str | None, str | None]:
105105
"""Try connecting to Goal Zero Yeti."""
106106
try:
107-
session = async_get_clientsession(self.hass)
108-
api = Yeti(host, self.hass.loop, session)
107+
api = Yeti(host, async_get_clientsession(self.hass))
109108
await api.sysinfo()
110109
except exceptions.ConnectError:
111-
_LOGGER.error("Error connecting to device at %s", host)
112110
return None, "cannot_connect"
113111
except exceptions.InvalidHost:
114-
_LOGGER.error("Invalid host at %s", host)
115112
return None, "invalid_host"
116113
except Exception: # pylint: disable=broad-except
117114
_LOGGER.exception("Unexpected exception")

‎homeassistant/components/goalzero/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Goal Zero Yeti",
44
"config_flow": true,
55
"documentation": "https://www.home-assistant.io/integrations/goalzero",
6-
"requirements": ["goalzero==0.1.7"],
6+
"requirements": ["goalzero==0.2.0"],
77
"dhcp": [
88
{"hostname": "yeti*"}
99
],

‎requirements_all.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ glances_api==0.2.0
718718
gntp==1.0.3
719719

720720
# homeassistant.components.goalzero
721-
goalzero==0.1.7
721+
goalzero==0.2.0
722722

723723
# homeassistant.components.google
724724
google-api-python-client==1.6.4

‎requirements_test_all.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ gios==2.0.0
426426
glances_api==0.2.0
427427

428428
# homeassistant.components.goalzero
429-
goalzero==0.1.7
429+
goalzero==0.2.0
430430

431431
# homeassistant.components.google
432432
google-api-python-client==1.6.4

0 commit comments

Comments
 (0)
Please sign in to comment.