mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +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 datetime import timedelta
|
||||||
|
|
||||||
from aioridwell import async_get_client
|
from aioridwell import async_get_client
|
||||||
from aioridwell.client import RidwellAccount, RidwellPickupEvent
|
|
||||||
from aioridwell.errors import InvalidCredentialsError, RidwellError
|
from aioridwell.errors import InvalidCredentialsError, RidwellError
|
||||||
|
from aioridwell.model import RidwellAccount, RidwellPickupEvent
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/ridwell",
|
"documentation": "https://www.home-assistant.io/integrations/ridwell",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"aioridwell==0.2.0"
|
"aioridwell==2021.12.2"
|
||||||
],
|
],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
"@bachya"
|
"@bachya"
|
||||||
|
@ -5,7 +5,7 @@ from collections.abc import Mapping
|
|||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
from typing import Any
|
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.components.sensor import SensorDeviceClass, SensorEntity
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
@ -58,13 +58,13 @@ class RidwellSensor(CoordinatorEntity, SensorEntity):
|
|||||||
|
|
||||||
attrs: dict[str, Any] = {
|
attrs: dict[str, Any] = {
|
||||||
ATTR_PICKUP_TYPES: {},
|
ATTR_PICKUP_TYPES: {},
|
||||||
ATTR_PICKUP_STATE: event.state,
|
ATTR_PICKUP_STATE: event.state.value,
|
||||||
}
|
}
|
||||||
|
|
||||||
for pickup in event.pickups:
|
for pickup in event.pickups:
|
||||||
if pickup.name not in attrs[ATTR_PICKUP_TYPES]:
|
if pickup.name not in attrs[ATTR_PICKUP_TYPES]:
|
||||||
attrs[ATTR_PICKUP_TYPES][pickup.name] = {
|
attrs[ATTR_PICKUP_TYPES][pickup.name] = {
|
||||||
ATTR_CATEGORY: pickup.category,
|
ATTR_CATEGORY: pickup.category.value,
|
||||||
ATTR_QUANTITY: pickup.quantity,
|
ATTR_QUANTITY: pickup.quantity,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
@ -249,7 +249,7 @@ aiopylgtv==0.4.0
|
|||||||
aiorecollect==1.0.8
|
aiorecollect==1.0.8
|
||||||
|
|
||||||
# homeassistant.components.ridwell
|
# homeassistant.components.ridwell
|
||||||
aioridwell==0.2.0
|
aioridwell==2021.12.2
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==1.0.5
|
aioshelly==1.0.5
|
||||||
|
@ -179,7 +179,7 @@ aiopylgtv==0.4.0
|
|||||||
aiorecollect==1.0.8
|
aiorecollect==1.0.8
|
||||||
|
|
||||||
# homeassistant.components.ridwell
|
# homeassistant.components.ridwell
|
||||||
aioridwell==0.2.0
|
aioridwell==2021.12.2
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==1.0.5
|
aioshelly==1.0.5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user