hass-core/homeassistant/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
..
__init__.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00
api.py Add strict typing to husqvarna automower (#115374) 2024-04-25 15:39:42 -05:00
application_credentials.py
binary_sensor.py Improve internal naming (#128390) 2024-10-14 23:15:02 +02:00
button.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
calendar.py Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
config_flow.py Use reauth helpers in husqvarna_automower (#128631) 2024-10-18 08:45:51 +02:00
const.py Refactor Husqvarna Automower (#117938) 2024-05-24 10:54:19 +02:00
coordinator.py Fix RecursionError in Husqvarna Automower coordinator (#123085) 2024-11-13 09:54:37 +01:00
device_tracker.py Remove redundant source_type property from TrackerEntities (#126717) 2024-09-25 08:56:42 +02:00
diagnostics.py Use runtime_data in Husqvarna Automower (#119309) 2024-06-10 20:46:29 +02:00
entity.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00
icons.json Add work area sensors to Husqvarna Automower (#126931) 2024-10-06 16:10:26 +02:00
lawn_mower.py Add returning activity to Husqvarna lawn mower (#124511) 2024-08-30 12:59:13 +02:00
manifest.json Bump aioautomower to 2024.10.3 (#128788) 2024-10-24 09:56:38 -10:00
number.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00
select.py Extend wrapper for sending commands to all platforms in Husqvarna Automower (#120255) 2024-07-05 10:02:38 +02:00
sensor.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00
services.yaml Add override for work areas in Husqvarna Automower (#120427) 2024-07-31 19:28:46 +02:00
strings.json Add work area sensors to Husqvarna Automower (#126931) 2024-10-06 16:10:26 +02:00
switch.py Add and remove entities during runtime in Husqvarna Automower (#127878) 2024-10-29 12:46:04 +01:00