hassio/host/__init__.py
def supperted_features(self):
        """Return a list of supported host features."""
        features = []

        if self.sys_dbus.systemd.is_connected:
            features.extend([FEATURES_REBOOT, FEATURES_SHUTDOWN, FEATURES_SERVICES])

        if self.sys_dbus.hostname.is_connected:
            features.append(FEATURES_HOSTNAME)

        if self.sys_hassos.available:
            features.append(FEATURES_HASSOS)

        return features
Return a list of supported host features.
Return a list of supported host features.
Return a list of supported host features .
def supperted_features(self):
        features = []
        if self.sys_dbus.systemd.is_connected:
            features.extend([FEATURES_REBOOT, FEATURES_SHUTDOWN, FEATURES_SERVICES])
        if self.sys_dbus.hostname.is_connected:
            features.append(FEATURES_HOSTNAME)
        if self.sys_hassos.available:
            features.append(FEATURES_HASSOS)
        return features
def supperted_features ( self ) : features = [ ] if self . sys_dbus . systemd . is_connected : features . extend ( [ FEATURES_REBOOT , FEATURES_SHUTDOWN , FEATURES_SERVICES ] ) if self . sys_dbus . hostname . is_connected : features . append ( FEATURES_HOSTNAME ) if self . sys_hassos . available : features . append ( FEATURES_HASSOS ) return features
Return a list of supported host features.
Return a list of supported host features .
"""Return a list of supported host features."""
self