Skip to content

Commit

Permalink
Respect setProperty when used with DeviceTiles widget #1373
Browse files Browse the repository at this point in the history
  • Loading branch information
doom369 committed Sep 17, 2020
1 parent 4374000 commit 38693ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import cc.blynk.server.core.model.enums.PinType;
import cc.blynk.server.core.model.enums.WidgetProperty;
import cc.blynk.server.core.model.widgets.Widget;
import cc.blynk.server.core.model.widgets.ui.tiles.DeviceTiles;
import cc.blynk.server.core.protocol.model.messages.StringMessage;
import cc.blynk.server.core.session.HardwareStateHolder;
import cc.blynk.utils.NumberUtil;
Expand Down Expand Up @@ -74,7 +75,7 @@ public static void messageReceived(Holder holder, ChannelHandlerContext ctx,

Widget widget = dash.updateProperty(deviceId, pin, widgetProperty, propertyValue);
//this is possible case for device selector
if (widget == null) {
if (widget == null || widget instanceof DeviceTiles) {
state.user.profile.putPinPropertyStorageValue(dash,
deviceId, PinType.VIRTUAL, pin, widgetProperty, propertyValue);
}
Expand Down

0 comments on commit 38693ed

Please sign in to comment.