Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
falkena committed May 7, 2017
1 parent d1e8cae commit bb44947
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -267,7 +267,7 @@ public void onStateUpdated(HmDatapoint dp) {
final HmChannel hmChannel = dp.getChannel();
if (hmChannel != null) {
Thing hmThing = getThingByUID(UidUtils.generateThingUID(hmChannel.getDevice(), getThing()));
if (hmThing instanceof HomematicThingHandler) {
if (hmThing.getHandler() instanceof HomematicThingHandler) {
HomematicThingHandler thingHandler = (HomematicThingHandler) hmThing.getHandler();
thingHandler.updateDatapointState(dp);
}
Expand Down

0 comments on commit bb44947

Please sign in to comment.