mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump aioridwell to 2021.12.2 (#62284)
This commit is contained in:
parent
ba79de56ab
commit
98c398cc37
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user