mirror of
https://github.com/home-assistant/core.git
synced 2026-04-25 16:25:33 +00:00
Bump aioautomower to 2024.3.0 (#112627)
Fix error in Husqvarna automower in Zones dataclass
This commit is contained in:
committed by
Franck Nijhof
parent
aebbee681c
commit
4db36d5ea9
@@ -2,7 +2,7 @@
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from aioautomower.utils import async_structure_token
|
||||
from aioautomower.utils import structure_token
|
||||
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_TOKEN
|
||||
from homeassistant.data_entry_flow import FlowResult
|
||||
@@ -27,7 +27,7 @@ class HusqvarnaConfigFlowHandler(
|
||||
"""Create an entry for the flow."""
|
||||
token = data[CONF_TOKEN]
|
||||
user_id = token[CONF_USER_ID]
|
||||
structured_token = await async_structure_token(token[CONF_ACCESS_TOKEN])
|
||||
structured_token = structure_token(token[CONF_ACCESS_TOKEN])
|
||||
first_name = structured_token.user.first_name
|
||||
last_name = structured_token.user.last_name
|
||||
await self.async_set_unique_id(user_id)
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
"dependencies": ["application_credentials"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/husqvarna_automower",
|
||||
"iot_class": "cloud_push",
|
||||
"requirements": ["aioautomower==2024.2.10"]
|
||||
"requirements": ["aioautomower==2024.3.0"]
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ aioaseko==0.0.2
|
||||
aioasuswrt==1.4.0
|
||||
|
||||
# homeassistant.components.husqvarna_automower
|
||||
aioautomower==2024.2.10
|
||||
aioautomower==2024.3.0
|
||||
|
||||
# homeassistant.components.azure_devops
|
||||
aioazuredevops==1.3.5
|
||||
|
||||
@@ -185,7 +185,7 @@ aioaseko==0.0.2
|
||||
aioasuswrt==1.4.0
|
||||
|
||||
# homeassistant.components.husqvarna_automower
|
||||
aioautomower==2024.2.10
|
||||
aioautomower==2024.3.0
|
||||
|
||||
# homeassistant.components.azure_devops
|
||||
aioazuredevops==1.3.5
|
||||
|
||||
@@ -62,6 +62,18 @@
|
||||
"connected": true,
|
||||
"statusTimestamp": 1697669932683
|
||||
},
|
||||
"workAreas": [
|
||||
{
|
||||
"workAreaId": 123456,
|
||||
"name": "Front lawn",
|
||||
"cuttingHeight": 50
|
||||
},
|
||||
{
|
||||
"workAreaId": 0,
|
||||
"name": "",
|
||||
"cuttingHeight": 50
|
||||
}
|
||||
],
|
||||
"positions": [
|
||||
{
|
||||
"latitude": 35.5402913,
|
||||
@@ -120,10 +132,6 @@
|
||||
"longitude": -82.5520054
|
||||
}
|
||||
],
|
||||
"cuttingHeight": 4,
|
||||
"headlight": {
|
||||
"mode": "EVENING_ONLY"
|
||||
},
|
||||
"statistics": {
|
||||
"cuttingBladeUsageTime": 123,
|
||||
"numberOfChargingCycles": 1380,
|
||||
@@ -133,6 +141,20 @@
|
||||
"totalDriveDistance": 1780272,
|
||||
"totalRunningTime": 4564800,
|
||||
"totalSearchingTime": 370800
|
||||
},
|
||||
"stayOutZones": {
|
||||
"dirty": false,
|
||||
"zones": [
|
||||
{
|
||||
"id": "81C6EEA2-D139-4FEA-B134-F22A6B3EA403",
|
||||
"name": "Springflowers",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"cuttingHeight": 4,
|
||||
"headlight": {
|
||||
"mode": "EVENING_ONLY"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user