mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
revert error
This commit is contained in:
parent
3efbe11d49
commit
0593885ed4
@ -44,6 +44,10 @@ class InfoCenter(CoreSysAttributes):
|
|||||||
|
|
||||||
async def update(self):
|
async def update(self):
|
||||||
"""Update properties over dbus."""
|
"""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")
|
_LOGGER.info("Update local host information")
|
||||||
try:
|
try:
|
||||||
self._data = await self.sys_dbus.hostname.get_properties()
|
self._data = await self.sys_dbus.hostname.get_properties()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user