1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Force / Enforce security if service is not available (#2744)

* Force / Enforce security if service is not available

* add options

* Add tests

* force security on test

* force security add-on validation

* Adjust style like codenotary

* Different exception type for backend error

* Adjust messages

* add comments

* ditch, not needed

* Address comment

* fix build
This commit is contained in:
Pascal Vizeli
2021-03-24 14:36:23 +01:00
committed by GitHub
parent b9af4aec6b
commit 82f76f60bd
15 changed files with 136 additions and 56 deletions

View File

@@ -11,6 +11,7 @@ URL_TEST = "https://version.home-assistant.io/stable.json"
async def test_fetch_versions(coresys: CoreSys) -> None:
"""Test download and sync version."""
coresys.config.force_security = True
await coresys.updater.fetch_data()
async with coresys.websession.get(URL_TEST) as request: