예제 #1
0
def updateConfOptions(
    conf_options: t.MutableMapping[str, t.Dict[t.Any, t.Any]]
) -> "OrderedDict[str, t.Dict[t.Any, t.Any]]":
    """
    Return Conf Options from all array types
    """
    conf_options = update_dict(conf_options, rpi.CONF_OPTIONS)
    conf_options = update_dict(conf_options, e131.CONF_OPTIONS)
    return t.cast("OrderedDict[str, t.Dict[t.Any, t.Any]]", conf_options)
예제 #2
0
def updateConfOptions(
    conf_options: t.MutableMapping[str, t.Dict[t.Any, t.Any]]
) -> "OrderedDict[str, t.Dict[t.Any, t.Any]]":
    """
    Returns a copy of ``conf_options`` updated with options from each pin type.
    """
    conf_options = update_dict(conf_options, digital.CONF_OPTIONS)
    conf_options = update_dict(conf_options, counter.CONF_OPTIONS)
    return t.cast("OrderedDict[str, t.Dict[t.Any, t.Any]]", conf_options)
예제 #3
0
def updateConfOptions(
    conf_options: t.MutableMapping[str, t.Dict[t.Any, t.Any]]
) -> "OrderedDict[str, t.Dict[t.Any, t.Any]]":
    """
    Returns a copy of ``conf_options`` updated with options from each device.
    """
    conf_options = update_dict(conf_options, mcp230xx.CONF_OPTIONS)
    return t.cast("OrderedDict[str, t.Dict[t.Any, t.Any]]", conf_options)
예제 #4
0
def updateConfOptions(conf_options: t.MutableMapping[str, t.Any]) -> t.Dict[str, t.Any]:
    """
    Return Conf Options from all device types
    """
    conf_options = update_dict(conf_options, ds18x20.CONF_OPTIONS)
    return t.cast(t.Dict[str, t.Any], conf_options)