From 0593885ed44ca7304d3a3ace5b26aa8a1e31bb78 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 26 Apr 2018 19:25:10 +0200 Subject: [PATCH] revert error --- hassio/host/info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hassio/host/info.py b/hassio/host/info.py index e32f401d2..3e0caeae3 100644 --- a/hassio/host/info.py +++ b/hassio/host/info.py @@ -44,6 +44,10 @@ class InfoCenter(CoreSysAttributes): async def update(self): """Update properties over dbus.""" + if not self.sys_dbus.systemd.is_connected: + _LOGGER.error("No hostname dbus connection available") + raise HostNotSupportedError() + _LOGGER.info("Update local host information") try: self._data = await self.sys_dbus.hostname.get_properties()