From 3effbf835aff9099e64be4d37a43093c37710cd7 Mon Sep 17 00:00:00 2001 From: Mark Hilbush Date: Fri, 1 Jan 2021 14:54:40 -0500 Subject: [PATCH] Fix actions Signed-off-by: Mark Hilbush --- .../internal/handler/EcobeeThermostatBridgeHandler.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java index b5dab50aa3d68..321069570cd8a 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeThermostatBridgeHandler.java @@ -15,6 +15,7 @@ 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 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.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 boolean actionPerformFunction(AbstractFunction function) { return false; } + @Override + public Collection> getServices() { + return Collections.singletonList(EcobeeActions.class); + } + public void updateChannels(ThermostatDTO thermostat) { logger.debug("ThermostatBridge: Updating channels for thermostat id {}", thermostat.identifier); savedThermostat = thermostat;