mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix unhandled KeyError in Recollect Waste (#44224)
This commit is contained in:
parent
a7fca3cf23
commit
38d16d3e0c
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/recollect_waste",
|
"documentation": "https://www.home-assistant.io/integrations/recollect_waste",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"aiorecollect==0.2.2"
|
"aiorecollect==1.0.1"
|
||||||
],
|
],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
"@bachya"
|
"@bachya"
|
||||||
|
@ -120,9 +120,11 @@ class RecollectWasteSensor(CoordinatorEntity):
|
|||||||
self._state = pickup_event.date
|
self._state = pickup_event.date
|
||||||
self._attributes.update(
|
self._attributes.update(
|
||||||
{
|
{
|
||||||
ATTR_PICKUP_TYPES: pickup_event.pickup_types,
|
ATTR_PICKUP_TYPES: [t.name for t in pickup_event.pickup_types],
|
||||||
ATTR_AREA_NAME: pickup_event.area_name,
|
ATTR_AREA_NAME: pickup_event.area_name,
|
||||||
ATTR_NEXT_PICKUP_TYPES: next_pickup_event.pickup_types,
|
ATTR_NEXT_PICKUP_TYPES: [
|
||||||
|
t.name for t in next_pickup_event.pickup_types
|
||||||
|
],
|
||||||
ATTR_NEXT_PICKUP_DATE: next_date,
|
ATTR_NEXT_PICKUP_DATE: next_date,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -215,7 +215,7 @@ aiopvpc==2.0.2
|
|||||||
aiopylgtv==0.3.3
|
aiopylgtv==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.recollect_waste
|
# homeassistant.components.recollect_waste
|
||||||
aiorecollect==0.2.2
|
aiorecollect==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==0.5.1
|
aioshelly==0.5.1
|
||||||
|
@ -131,7 +131,7 @@ aiopvpc==2.0.2
|
|||||||
aiopylgtv==0.3.3
|
aiopylgtv==0.3.3
|
||||||
|
|
||||||
# homeassistant.components.recollect_waste
|
# homeassistant.components.recollect_waste
|
||||||
aiorecollect==0.2.2
|
aiorecollect==1.0.1
|
||||||
|
|
||||||
# homeassistant.components.shelly
|
# homeassistant.components.shelly
|
||||||
aioshelly==0.5.1
|
aioshelly==0.5.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user