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

Add resolution manager and unsupported flags (#2124)

* Add unsupported reason flags

* Restore test_network.py

* Add Resolution manager object

* fix import
This commit is contained in:
Joakim Sørensen
2020-10-13 12:54:17 +02:00
committed by GitHub
parent 8da686fc34
commit 028b170cff
10 changed files with 132 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
"""Tests for resolution manager."""
from supervisor.const import UnsupportedReason
from supervisor.coresys import CoreSys
def test_properies(coresys: CoreSys):
"""Test resolution manager properties."""
assert coresys.core.supported
coresys.resolution.unsupported = UnsupportedReason.OS
assert not coresys.core.supported