core/tests/components/hassio
Stefan Agner fb3105bdc0
Improve Supervisor backup error handling (#134346)
* Raise Home Assistant error in case backup restore fails

This change raises a Home Assistant error in case the backup restore
fails. The Supervisor is checking some common issues before starting
the actual restore in background. This early checks raise an exception
(represented by a HTTP 400 error). This change catches such errors and
raises a Home Assistant error with the message from the Supervisor
exception.

* Add test coverage
2025-01-02 11:37:25 +01:00
..
__init__.py
common.py Continue migration of methods from handler to aiohasupervisor (#129183) 2024-10-29 14:33:21 +01:00
conftest.py Continue migration of methods from handler to aiohasupervisor (#129183) 2024-10-29 14:33:21 +01:00
test_addon_manager.py Continue migration of methods from handler to aiohasupervisor (#129183) 2024-10-29 14:33:21 +01:00
test_addon_panel.py Continue migration of methods from handler to aiohasupervisor (#129183) 2024-10-29 14:33:21 +01:00
test_auth.py
test_backup.py Improve Supervisor backup error handling (#134346) 2025-01-02 11:37:25 +01:00
test_binary_sensor.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_config_flow.py Use single_instance_allowed in hassio (#128060) 2024-10-11 23:37:14 +02:00
test_diagnostics.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_discovery.py Fix stringification of discovered hassio uuid (#129797) 2024-11-04 12:26:34 +01:00
test_handler.py Reboot host to aiohasupervisor (#130391) 2024-12-02 13:34:39 +01:00
test_http.py Hassio logs boots (#129151) 2024-10-28 16:41:14 +01:00
test_ingress.py
test_init.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_issues.py Fix translation missing errors in supervisor tests (#130640) 2024-11-14 21:11:33 +01:00
test_repairs.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_sensor.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_system_health.py
test_update.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00
test_websocket_api.py Replace Supervisor resolution API calls with aiohasupervisor (#129599) 2024-11-07 01:33:51 +01:00