From 937b31d84549aa33c721bf32242526b3cc3ad17d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 23 Aug 2019 14:22:47 +0200 Subject: [PATCH 1/2] Bump version 184 --- hassio/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From b898cd2a3a8a92edfaf4bcbcacce692b6dc54f4c Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 26 Aug 2019 09:45:10 +0200 Subject: [PATCH 2/2] Preserve ordering of locals (#1263) * Preserve ordering of locals * fix lint --- hassio/host/network.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."""