File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/src/main/java/com/maths22/laundryviewapi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ public RoomMachineStatus lookup(String roomId) {
8181 }
8282 }
8383
84- if (obj .has ("appliance_type2" ) || obj .getString ("type" ).equals ("washNdry" )) {
84+ if (obj .has ("appliance_type2" ) || obj .getString ("type" ).equals ("washNdry" ) || obj . getString ( "type" ). equals ( "dblDry" ) ) {
8585 String itemType = obj .has ("appliance_type2" ) ? obj .getString ("appliance_type2" ) : null ;
8686 // It must be that obj.getString("type").equals("washNdry")
8787 if (itemType == null ) {
88- itemType = "W " ;
88+ itemType = obj . getString ( "type" ). equals ( "washNdry" ) ? "W" : "D " ;
8989 }
9090 String id = obj .getString ("appliance_desc_key2" );
9191 String number = obj .getString ("appliance_desc2" );
You can’t perform that action at this time.
0 commit comments