From f025714b0fc507368a7526e125b11de5bc7848b2 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Wed, 27 Dec 2023 17:33:23 -0500 Subject: [PATCH 1/2] bump lavviebotaio to 0.2.0 and integration to 0.1.11 --- custom_components/purrsong/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/purrsong/manifest.json b/custom_components/purrsong/manifest.json index 473be22..581d18d 100644 --- a/custom_components/purrsong/manifest.json +++ b/custom_components/purrsong/manifest.json @@ -8,6 +8,6 @@ "integration_type": "hub", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/RobertD502/home-assistant-lavviebot/issues", - "requirements": ["lavviebotaio==0.1"], - "version": "0.1.10" + "requirements": ["lavviebotaio==0.2.0"], + "version": "0.1.11" } From 39baa0916607ed981face325c5ba54fa4149ef75 Mon Sep 17 00:00:00 2001 From: "Dr. Drinovac" <52541649+RobertD502@users.noreply.github.com> Date: Wed, 27 Dec 2023 17:34:20 -0500 Subject: [PATCH 2/2] include error message in exception --- custom_components/purrsong/coordinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/purrsong/coordinator.py b/custom_components/purrsong/coordinator.py index e3e71b7..5d1b2ee 100644 --- a/custom_components/purrsong/coordinator.py +++ b/custom_components/purrsong/coordinator.py @@ -44,9 +44,9 @@ async def _async_update_data(self) -> LavviebotData: try: data = await self.client.async_get_data() except LavviebotAuthError as error: - raise ConfigEntryAuthFailed from error + raise ConfigEntryAuthFailed(error) from error except LavviebotError as error: - raise UpdateFailed from error + raise UpdateFailed(error) from error if not data.litterboxes: raise UpdateFailed("No Litter Boxes found") return data