mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
parent
3ea4c3b8bf
commit
ed907da190
@ -7,5 +7,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/husqvarna_automower",
|
"documentation": "https://www.home-assistant.io/integrations/husqvarna_automower",
|
||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["aioautomower"],
|
"loggers": ["aioautomower"],
|
||||||
"requirements": ["aioautomower==2024.8.0"]
|
"requirements": ["aioautomower==2024.9.0"]
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ async def async_set_work_area_cutting_height(
|
|||||||
work_area_id: int,
|
work_area_id: int,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set cutting height for work area."""
|
"""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
|
mower_id, int(cheight), work_area_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ aioaseko==0.2.0
|
|||||||
aioasuswrt==1.4.0
|
aioasuswrt==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.husqvarna_automower
|
# homeassistant.components.husqvarna_automower
|
||||||
aioautomower==2024.8.0
|
aioautomower==2024.9.0
|
||||||
|
|
||||||
# homeassistant.components.azure_devops
|
# homeassistant.components.azure_devops
|
||||||
aioazuredevops==2.2.1
|
aioazuredevops==2.2.1
|
||||||
|
@ -186,7 +186,7 @@ aioaseko==0.2.0
|
|||||||
aioasuswrt==1.4.0
|
aioasuswrt==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.husqvarna_automower
|
# homeassistant.components.husqvarna_automower
|
||||||
aioautomower==2024.8.0
|
aioautomower==2024.9.0
|
||||||
|
|
||||||
# homeassistant.components.azure_devops
|
# homeassistant.components.azure_devops
|
||||||
aioazuredevops==2.2.1
|
aioazuredevops==2.2.1
|
||||||
|
@ -70,17 +70,26 @@
|
|||||||
{
|
{
|
||||||
"workAreaId": 123456,
|
"workAreaId": 123456,
|
||||||
"name": "Front lawn",
|
"name": "Front lawn",
|
||||||
"cuttingHeight": 50
|
"cuttingHeight": 50,
|
||||||
|
"enabled": true,
|
||||||
|
"progress": 40,
|
||||||
|
"lastTimeCompleted": 1723449269
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"workAreaId": 654321,
|
"workAreaId": 654321,
|
||||||
"name": "Back lawn",
|
"name": "Back lawn",
|
||||||
"cuttingHeight": 25
|
"cuttingHeight": 25,
|
||||||
|
"enabled": true,
|
||||||
|
"progress": 30,
|
||||||
|
"lastTimeCompleted": 1722449269
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"workAreaId": 0,
|
"workAreaId": 0,
|
||||||
"name": "",
|
"name": "",
|
||||||
"cuttingHeight": 50
|
"cuttingHeight": 50,
|
||||||
|
"enabled": false,
|
||||||
|
"progress": 20,
|
||||||
|
"lastTimeCompleted": 1723439269
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"positions": [
|
"positions": [
|
||||||
|
@ -5,26 +5,6 @@
|
|||||||
'battery_percent': 100,
|
'battery_percent': 100,
|
||||||
}),
|
}),
|
||||||
'calendar': dict({
|
'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([
|
'tasks': list([
|
||||||
dict({
|
dict({
|
||||||
'duration': 300,
|
'duration': 300,
|
||||||
@ -135,15 +115,24 @@
|
|||||||
'work_areas': dict({
|
'work_areas': dict({
|
||||||
'0': dict({
|
'0': dict({
|
||||||
'cutting_height': 50,
|
'cutting_height': 50,
|
||||||
|
'enabled': False,
|
||||||
|
'last_time_completed_naive': '1970-01-20T22:43:59.269000',
|
||||||
'name': 'my_lawn',
|
'name': 'my_lawn',
|
||||||
|
'progress': 20,
|
||||||
}),
|
}),
|
||||||
'123456': dict({
|
'123456': dict({
|
||||||
'cutting_height': 50,
|
'cutting_height': 50,
|
||||||
|
'enabled': True,
|
||||||
|
'last_time_completed_naive': '1970-01-20T22:44:09.269000',
|
||||||
'name': 'Front lawn',
|
'name': 'Front lawn',
|
||||||
|
'progress': 40,
|
||||||
}),
|
}),
|
||||||
'654321': dict({
|
'654321': dict({
|
||||||
'cutting_height': 25,
|
'cutting_height': 25,
|
||||||
|
'enabled': True,
|
||||||
|
'last_time_completed_naive': '1970-01-20T22:27:29.269000',
|
||||||
'name': 'Back lawn',
|
'name': 'Back lawn',
|
||||||
|
'progress': 30,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
@ -78,9 +78,7 @@ async def test_number_workarea_commands(
|
|||||||
values[TEST_MOWER_ID].work_areas[123456].cutting_height = 75
|
values[TEST_MOWER_ID].work_areas[123456].cutting_height = 75
|
||||||
mock_automower_client.get_status.return_value = values
|
mock_automower_client.get_status.return_value = values
|
||||||
mocked_method = AsyncMock()
|
mocked_method = AsyncMock()
|
||||||
setattr(
|
setattr(mock_automower_client.commands, "workarea_settings", mocked_method)
|
||||||
mock_automower_client.commands, "set_cutting_height_workarea", mocked_method
|
|
||||||
)
|
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
domain="number",
|
domain="number",
|
||||||
service="set_value",
|
service="set_value",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user