コード例 #1
0
ファイル: light.py プロジェクト: Cribstone/home-assistant
def get_ids(statemachine):
    """ Get the light IDs that are being tracked in the statemachine. """
    return ha.get_grouped_state_cats(statemachine, STATE_CATEGORY_FORMAT, True)
コード例 #2
0
def get_categories(statemachine):
    """ Gets the categories of the different Chromecasts that are being
    tracked. """
    return ha.get_grouped_state_cats(statemachine, STATE_CATEGORY_FORMAT,
                                     False)
コード例 #3
0
ファイル: device.py プロジェクト: Cribstone/home-assistant
def get_categories(statemachine):
    """ Returns the categories of devices that are being tracked in the
        statemachine. """
    return ha.get_grouped_state_cats(statemachine, STATE_CATEGORY_FORMAT,
                                     False)