[ecobee] Fix actions (#9632)
Signed-off-by: Mark Hilbush <mark@hilbush.com>
This commit is contained in:
parent
d1ef41851c
commit
10d2ab2079
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue