Skip to content

Commit

Permalink
[ecobee] Fix actions (openhab#9632)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Hilbush <[email protected]>
  • Loading branch information
mhilbush authored Jan 2, 2021
1 parent ba8c43c commit 3659fbc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -244,6 +247,11 @@ public boolean actionPerformFunction(AbstractFunction function) {
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;
Expand Down

0 comments on commit 3659fbc

Please sign in to comment.