mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 19:09:41 +00:00
* Listen for dbus property changes * Avoid remaking dbus proxy objects * proper snake case for pylint * some cleanup and more tests
15 lines
397 B
Python
15 lines
397 B
Python
"""Test supported features."""
|
|
# pylint: disable=protected-access
|
|
|
|
|
|
def test_supported_features(coresys, dbus_is_connected):
|
|
"""Test host features."""
|
|
assert "network" in coresys.host.features
|
|
|
|
coresys._dbus.network.is_connected = False
|
|
|
|
assert "network" in coresys.host.features
|
|
|
|
coresys.host.supported_features.cache_clear()
|
|
assert "network" not in coresys.host.features
|