hass-core/tests/components/husqvarna_automower
Thomas55555 827875473b
Fix RecursionError in Husqvarna Automower coordinator (#123085)
* reach maximum recursion depth exceeded in tests

* second background task

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* test

* modify test

* tests

* use correct exception

* reset mock

* use recursion_limit

* remove unneeded ticks

* test TimeoutException

* set lower recursionlimit

* remove not that important comment and move the other

* test that we connect and listen successfully

* Simulate hass shutting down

* skip testing against the recursion limit

* Update homeassistant/components/husqvarna_automower/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* mock

* Remove comment

* Revert "mock"

This reverts commit e8ddaea3d7.

* Move patch to decorator

* Make execution of patched methods predictable

* Parametrize test, make mocked start_listening block

* Apply suggestions from code review

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2024-11-13 09:54:37 +01:00
..
fixtures Add work area sensors to Husqvarna Automower (#126931) 2024-10-06 16:10:26 +02:00
snapshots Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
__init__.py Bump aioautomower to 2024.7.3 (#121983) 2024-07-31 08:28:39 +02:00
conftest.py Fix RecursionError in Husqvarna Automower coordinator (#123085) 2024-11-13 09:54:37 +01:00
const.py
test_binary_sensor.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_button.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_calendar.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_config_flow.py
test_device_tracker.py
test_diagnostics.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_init.py Fix RecursionError in Husqvarna Automower coordinator (#123085) 2024-11-13 09:54:37 +01:00
test_lawn_mower.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_number.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_select.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_sensor.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
test_switch.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00