Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Bo<service@lewei50.com>
  • Loading branch information
lewei50 committed Aug 13, 2020
1 parent afe0135 commit b3b4c85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -66,7 +66,6 @@ public IammeterHandler(Thing thing) {
config = getConfiguration();
}


@Override
public void handleCommand(ChannelUID channelUID, Command command) {
if (command instanceof RefreshType) {
Expand Down Expand Up @@ -111,7 +110,8 @@ private void refresh() {
channelPrefix = IammeterBindingConstants.THING_TYPE_POWERMETER + ":"
+ channel.getUID().getThingUID().getId();
State state = getDecimal(
iammeterData.get(keyWord).getAsJsonArray().get(channelConfig.getIndex()).toString(), channelConfig.getUnit());
iammeterData.get(keyWord).getAsJsonArray().get(channelConfig.getIndex()).toString(),
channelConfig.getUnit());
updateState(channel.getUID(), state);
}
}
Expand Down Expand Up @@ -186,7 +186,6 @@ public void dispose() {
super.dispose();
}


public IammeterConfiguration getConfiguration() {
return this.getConfigAs(IammeterConfiguration.class);
}
Expand Down
Expand Up @@ -11,9 +11,11 @@
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.iammeter.internal;
import org.eclipse.smarthome.core.library.unit.SmartHomeUnits;

import javax.measure.Unit;

import org.eclipse.smarthome.core.library.unit.SmartHomeUnits;

/**
* The {@link IammeterWEM3080Channel} Enum defines common constants, which are
* used across the whole binding.
Expand Down

0 comments on commit b3b4c85

Please sign in to comment.