mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-16 10:14:36 +00:00
Final fix for resolving room mapping. Also applied this fix to category
mappign in SDATA as well.
This commit is contained in:
@@ -57,11 +57,11 @@ public class VeraInfo {
|
||||
Device theDevice = null;
|
||||
while (theIterator.hasNext()) {
|
||||
theDevice = theIterator.next();
|
||||
if(theDevice.getRoom() != null)
|
||||
if(theDevice.getRoom() != null && roomMap.get(theDevice.getRoom()) != null)
|
||||
theDevice.setRoom(roomMap.get(theDevice.getRoom()).getName());
|
||||
else
|
||||
theDevice.setRoom("<unknown>");
|
||||
if(theDevice.getCategory() != null)
|
||||
theDevice.setRoom("no room");
|
||||
if(theDevice.getCategory() != null && categoryMap.get(theDevice.getCategory()) != null)
|
||||
theDevice.setCategory(categoryMap.get(theDevice.getCategory()).getName());
|
||||
else
|
||||
theDevice.setCategory("<unknown>");
|
||||
|
||||
Reference in New Issue
Block a user