Search in sources :

Example 1 with WithingsBindingProvider

use of org.openhab.binding.withings.WithingsBindingProvider in project openhab1-addons by openhab.

the class WithingsBinding method getWithingsBindings.

private Map<String, WithingsBindingConfig> getWithingsBindings() {
    Map<String, WithingsBindingConfig> bindings = new HashMap<String, WithingsBindingConfig>();
    for (WithingsBindingProvider provider : this.providers) {
        Collection<String> itemNames = provider.getItemNames();
        for (String itemName : itemNames) {
            WithingsBindingConfig config = provider.getItemConfig(itemName);
            bindings.put(itemName, config);
        }
    }
    return bindings;
}
Also used : HashMap(java.util.HashMap) WithingsBindingConfig(org.openhab.binding.withings.WithingsBindingConfig) WithingsBindingProvider(org.openhab.binding.withings.WithingsBindingProvider)

Aggregations

HashMap (java.util.HashMap)1 WithingsBindingConfig (org.openhab.binding.withings.WithingsBindingConfig)1 WithingsBindingProvider (org.openhab.binding.withings.WithingsBindingProvider)1