From 94fba7e175fdef8053280975be412f9ff4a2c49d Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 26 Apr 2018 11:32:15 +0200 Subject: [PATCH] Update info.py --- hassio/host/info.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hassio/host/info.py b/hassio/host/info.py index 76b794b0f..e32f401d2 100644 --- a/hassio/host/info.py +++ b/hassio/host/info.py @@ -42,16 +42,8 @@ class InfoCenter(CoreSysAttributes): """Return local CPE.""" return self._data.get('OperatingSystemCPEName', UNKNOWN) - def _check_dbus_hostname(self): - """Check if systemd is connect or raise error.""" - if not self.sys_dbus.hostname.is_connected: - _LOGGER.error("No hostname dbus connection available") - raise HostNotSupportedError() - async def update(self): """Update properties over dbus.""" - self._check_dbus_hostname() - _LOGGER.info("Update local host information") try: self._data = await self.sys_dbus.hostname.get_properties()