From 98c398cc37bc0f85f0e8baa819d324d1897a1040 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Sat, 18 Dec 2021 16:26:37 -0700 Subject: [PATCH] Bump aioridwell to 2021.12.2 (#62284) --- homeassistant/components/ridwell/__init__.py | 2 +- homeassistant/components/ridwell/manifest.json | 2 +- homeassistant/components/ridwell/sensor.py | 6 +++--- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/ridwell/__init__.py b/homeassistant/components/ridwell/__init__.py index 85d456271df..03b1d2237e0 100644 --- a/homeassistant/components/ridwell/__init__.py +++ b/homeassistant/components/ridwell/__init__.py @@ -5,8 +5,8 @@ import asyncio from datetime import timedelta from aioridwell import async_get_client -from aioridwell.client import RidwellAccount, RidwellPickupEvent from aioridwell.errors import InvalidCredentialsError, RidwellError +from aioridwell.model import RidwellAccount, RidwellPickupEvent from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform diff --git a/homeassistant/components/ridwell/manifest.json b/homeassistant/components/ridwell/manifest.json index 8c9b2e71304..4aed69a05f3 100644 --- a/homeassistant/components/ridwell/manifest.json +++ b/homeassistant/components/ridwell/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/ridwell", "requirements": [ - "aioridwell==0.2.0" + "aioridwell==2021.12.2" ], "codeowners": [ "@bachya" diff --git a/homeassistant/components/ridwell/sensor.py b/homeassistant/components/ridwell/sensor.py index 269a08587c7..ddbf62b2356 100644 --- a/homeassistant/components/ridwell/sensor.py +++ b/homeassistant/components/ridwell/sensor.py @@ -5,7 +5,7 @@ from collections.abc import Mapping from datetime import date, datetime from typing import Any -from aioridwell.client import RidwellAccount, RidwellPickupEvent +from aioridwell.model import RidwellAccount, RidwellPickupEvent from homeassistant.components.sensor import SensorDeviceClass, SensorEntity from homeassistant.config_entries import ConfigEntry @@ -58,13 +58,13 @@ class RidwellSensor(CoordinatorEntity, SensorEntity): attrs: dict[str, Any] = { ATTR_PICKUP_TYPES: {}, - ATTR_PICKUP_STATE: event.state, + ATTR_PICKUP_STATE: event.state.value, } for pickup in event.pickups: if pickup.name not in attrs[ATTR_PICKUP_TYPES]: attrs[ATTR_PICKUP_TYPES][pickup.name] = { - ATTR_CATEGORY: pickup.category, + ATTR_CATEGORY: pickup.category.value, ATTR_QUANTITY: pickup.quantity, } else: diff --git a/requirements_all.txt b/requirements_all.txt index bae5422a74a..f646f6d1469 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -249,7 +249,7 @@ aiopylgtv==0.4.0 aiorecollect==1.0.8 # homeassistant.components.ridwell -aioridwell==0.2.0 +aioridwell==2021.12.2 # homeassistant.components.shelly aioshelly==1.0.5 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 21a8b5d1562..55c1e9376ca 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -179,7 +179,7 @@ aiopylgtv==0.4.0 aiorecollect==1.0.8 # homeassistant.components.ridwell -aioridwell==0.2.0 +aioridwell==2021.12.2 # homeassistant.components.shelly aioshelly==1.0.5