core/tests/components/husqvarna_automower
Thomas55555 f040060b3c
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-15 18:47:59 +01:00
..
fixtures
snapshots Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
__init__.py
conftest.py Fix RecursionError in Husqvarna Automower coordinator (#123085) 2024-11-15 18:47:59 +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-15 18:47:59 +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