hassio/host/control.py
def _check_dbus(self, flag):
        """Check if systemd is connect or raise error."""
        if flag == MANAGER and self.sys_dbus.systemd.is_connected:
            return
        if flag == HOSTNAME and self.sys_dbus.hostname.is_connected:
            return

        _LOGGER.error("No %s D-Bus connection available", flag)
        raise HostNotSupportedError()
Check if systemd is connect or raise error.
Check if systemd is connect or raise error.
Check if systemd is connect or raise error .
def _check_dbus(self, flag):
        if flag == MANAGER and self.sys_dbus.systemd.is_connected:
            return
        if flag == HOSTNAME and self.sys_dbus.hostname.is_connected:
            return
        _LOGGER.error("No %s D-Bus connection available", flag)
        raise HostNotSupportedError()
def _check_dbus ( self , flag ) : if flag == MANAGER and self . sys_dbus . systemd . is_connected : return if flag == HOSTNAME and self . sys_dbus . hostname . is_connected : return _LOGGER . error ( "No %s D-Bus connection available" , flag ) raise HostNotSupportedError ( )
Check if systemd is connect or raise error.
Check if systemd is connect or raise error .
"""Check if systemd is connect or raise error."""
self
flag