Bump aioautomower to 2024.9.0 (#125647)

bump aioautomower to 2024.9.0
This commit is contained in:
Thomas55555 2024-09-10 15:38:18 +02:00 committed by GitHub
parent 3ea4c3b8bf
commit ed907da190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 26 additions and 30 deletions

View File

@ -7,5 +7,5 @@
"documentation": "https://www.home-assistant.io/integrations/husqvarna_automower",
"iot_class": "cloud_push",
"loggers": ["aioautomower"],
"requirements": ["aioautomower==2024.8.0"]
"requirements": ["aioautomower==2024.9.0"]
}

View File

@ -45,7 +45,7 @@ async def async_set_work_area_cutting_height(
work_area_id: int,
) -> None:
"""Set cutting height for work area."""
await coordinator.api.commands.set_cutting_height_workarea(
await coordinator.api.commands.workarea_settings(
mower_id, int(cheight), work_area_id
)

View File

@ -198,7 +198,7 @@ aioaseko==0.2.0
aioasuswrt==1.4.0
# homeassistant.components.husqvarna_automower
aioautomower==2024.8.0
aioautomower==2024.9.0
# homeassistant.components.azure_devops
aioazuredevops==2.2.1

View File

@ -186,7 +186,7 @@ aioaseko==0.2.0
aioasuswrt==1.4.0
# homeassistant.components.husqvarna_automower
aioautomower==2024.8.0
aioautomower==2024.9.0
# homeassistant.components.azure_devops
aioazuredevops==2.2.1

View File

@ -70,17 +70,26 @@
{
"workAreaId": 123456,
"name": "Front lawn",
"cuttingHeight": 50
"cuttingHeight": 50,
"enabled": true,
"progress": 40,
"lastTimeCompleted": 1723449269
},
{
"workAreaId": 654321,
"name": "Back lawn",
"cuttingHeight": 25
"cuttingHeight": 25,
"enabled": true,
"progress": 30,
"lastTimeCompleted": 1722449269
},
{
"workAreaId": 0,
"name": "",
"cuttingHeight": 50
"cuttingHeight": 50,
"enabled": false,
"progress": 20,
"lastTimeCompleted": 1723439269
}
],
"positions": [

View File

@ -5,26 +5,6 @@
'battery_percent': 100,
}),
'calendar': dict({
'events': list([
dict({
'end': '2024-03-02T00:00:00',
'rrule': 'FREQ=WEEKLY;BYDAY=MO,WE,FR',
'schedule_no': 1,
'start': '2024-03-01T19:00:00',
'uid': '1140_300_MO,WE,FR',
'work_area_id': None,
'work_area_name': None,
}),
dict({
'end': '2024-03-02T08:00:00',
'rrule': 'FREQ=WEEKLY;BYDAY=TU,TH,SA',
'schedule_no': 2,
'start': '2024-03-02T00:00:00',
'uid': '0_480_TU,TH,SA',
'work_area_id': None,
'work_area_name': None,
}),
]),
'tasks': list([
dict({
'duration': 300,
@ -135,15 +115,24 @@
'work_areas': dict({
'0': dict({
'cutting_height': 50,
'enabled': False,
'last_time_completed_naive': '1970-01-20T22:43:59.269000',
'name': 'my_lawn',
'progress': 20,
}),
'123456': dict({
'cutting_height': 50,
'enabled': True,
'last_time_completed_naive': '1970-01-20T22:44:09.269000',
'name': 'Front lawn',
'progress': 40,
}),
'654321': dict({
'cutting_height': 25,
'enabled': True,
'last_time_completed_naive': '1970-01-20T22:27:29.269000',
'name': 'Back lawn',
'progress': 30,
}),
}),
})

View File

@ -78,9 +78,7 @@ async def test_number_workarea_commands(
values[TEST_MOWER_ID].work_areas[123456].cutting_height = 75
mock_automower_client.get_status.return_value = values
mocked_method = AsyncMock()
setattr(
mock_automower_client.commands, "set_cutting_height_workarea", mocked_method
)
setattr(mock_automower_client.commands, "workarea_settings", mocked_method)
await hass.services.async_call(
domain="number",
service="set_value",