diff --git a/hassio/const.py b/hassio/const.py index 6b8816588..fd73e1966 100644 --- a/hassio/const.py +++ b/hassio/const.py @@ -2,8 +2,8 @@ from pathlib import Path from ipaddress import ip_network +HASSIO_VERSION = "184" -HASSIO_VERSION = "183" URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons" URL_HASSIO_VERSION = "https://version.home-assistant.io/{channel}.json" diff --git a/hassio/host/network.py b/hassio/host/network.py index 2838fe6e1..8a7e7b95e 100644 --- a/hassio/host/network.py +++ b/hassio/host/network.py @@ -1,6 +1,6 @@ """Info control for host.""" import logging -from typing import List, Set +from typing import List from ..coresys import CoreSysAttributes, CoreSys from ..exceptions import HostNotSupportedError, DBusNotConnectedError, DBusError @@ -19,13 +19,13 @@ class NetworkManager(CoreSysAttributes): def dns_servers(self) -> List[str]: """Return a list of local DNS servers.""" # Read all local dns servers - servers: Set[str] = set() + servers: List[str] = [] for config in self.sys_dbus.nmi_dns.configuration: if config.vpn or not config.nameservers: continue - servers |= set(config.nameservers) + servers.extend(config.nameservers) - return [f"dns://{server}" for server in servers] + return [f"dns://{server}" for server in list(dict.fromkeys(servers))] async def update(self): """Update properties over dbus."""