Merge pull request #1264 from home-assistant/dev

Release 184
This commit is contained in:
Pascal Vizeli 2019-08-26 10:03:53 +02:00 committed by GitHub
commit c1ad64cddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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."""