From af4ccefb8ab543077d2562b1ea304b3da82f6d3d Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Mon, 6 Nov 2023 22:13:17 +0100 Subject: [PATCH] Bump evohome-async to 0.4.6 (#103534) * bump client to 0.4.5 * bump to 0.4.6 * adress lint mypy fails --- homeassistant/components/evohome/__init__.py | 9 ++++++--- homeassistant/components/evohome/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/evohome/__init__.py b/homeassistant/components/evohome/__init__.py index b47e86dd501..c26310bf61c 100644 --- a/homeassistant/components/evohome/__init__.py +++ b/homeassistant/components/evohome/__init__.py @@ -427,7 +427,9 @@ class EvoBroker: async def save_auth_tokens(self) -> None: """Save access tokens and session IDs to the store for later use.""" # evohomeasync2 uses naive/local datetimes - access_token_expires = _dt_local_to_aware(self.client.access_token_expires) + access_token_expires = _dt_local_to_aware( + self.client.access_token_expires # type: ignore[arg-type] + ) app_storage = { CONF_USERNAME: self.client.username, @@ -437,8 +439,9 @@ class EvoBroker: } if self.client_v1 and self.client_v1.user_data: - app_storage[USER_DATA] = { - "userInfo": {"userID": self.client_v1.user_data["userInfo"]["userID"]}, + user_id = self.client_v1.user_data["userInfo"]["userID"] # type: ignore[index] + app_storage[USER_DATA] = { # type: ignore[assignment] + "userInfo": {"userID": user_id}, "sessionId": self.client_v1.user_data["sessionId"], } else: diff --git a/homeassistant/components/evohome/manifest.json b/homeassistant/components/evohome/manifest.json index 3cf07dfdfc4..58efb2c25b2 100644 --- a/homeassistant/components/evohome/manifest.json +++ b/homeassistant/components/evohome/manifest.json @@ -5,5 +5,5 @@ "documentation": "https://www.home-assistant.io/integrations/evohome", "iot_class": "cloud_polling", "loggers": ["evohomeasync", "evohomeasync2"], - "requirements": ["evohome-async==0.4.4"] + "requirements": ["evohome-async==0.4.6"] } diff --git a/requirements_all.txt b/requirements_all.txt index 27292aa3514..8e9f5ff1084 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -785,7 +785,7 @@ eufylife-ble-client==0.1.8 # evdev==1.6.1 # homeassistant.components.evohome -evohome-async==0.4.4 +evohome-async==0.4.6 # homeassistant.components.faa_delays faadelays==2023.9.1