]> git.basschouten.com Git - openhab-addons.git/commitdiff
[ecobee] Fix actions (#9632)
authorMark Hilbush <mark@hilbush.com>
Sat, 2 Jan 2021 19:28:33 +0000 (14:28 -0500)
committerGitHub <noreply@github.com>
Sat, 2 Jan 2021 19:28:33 +0000 (11:28 -0800)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java

index b5dab50aa3d6887d56c22d8c09d7823ff731eee1..321069570cd8a03c84c7a7ee483fe0c4a2a09d41 100644 (file)
@@ -15,6 +15,7 @@ package org.openhab.binding.ecobee.internal.handler;
 import static org.openhab.binding.ecobee.internal.EcobeeBindingConstants.*;
 
 import java.lang.reflect.Field;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
@@ -27,6 +28,7 @@ import javax.measure.Unit;
 import org.apache.commons.lang.WordUtils;
 import org.eclipse.jdt.annotation.NonNullByDefault;
 import org.eclipse.jdt.annotation.Nullable;
+import org.openhab.binding.ecobee.internal.action.EcobeeActions;
 import org.openhab.binding.ecobee.internal.api.EcobeeApi;
 import org.openhab.binding.ecobee.internal.config.EcobeeThermostatConfiguration;
 import org.openhab.binding.ecobee.internal.dto.SelectionDTO;
@@ -65,6 +67,7 @@ import org.openhab.core.thing.ThingStatusDetail;
 import org.openhab.core.thing.ThingStatusInfo;
 import org.openhab.core.thing.binding.BaseBridgeHandler;
 import org.openhab.core.thing.binding.ThingHandler;
+import org.openhab.core.thing.binding.ThingHandlerService;
 import org.openhab.core.thing.type.ChannelType;
 import org.openhab.core.thing.type.ChannelTypeRegistry;
 import org.openhab.core.thing.type.ChannelTypeUID;
@@ -244,6 +247,11 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler {
         return false;
     }
 
+    @Override
+    public Collection<Class<? extends ThingHandlerService>> getServices() {
+        return Collections.singletonList(EcobeeActions.class);
+    }
+
     public void updateChannels(ThermostatDTO thermostat) {
         logger.debug("ThermostatBridge: Updating channels for thermostat id {}", thermostat.identifier);
         savedThermostat = thermostat;