Fix setting state for created Plejd room devices
- when using includeRoomsAsLights setting
This commit is contained in:
parent
3804c63991
commit
55f0f60be9
3 changed files with 12 additions and 4 deletions
|
|
@ -54,7 +54,11 @@ class DeviceRegistry {
|
|||
}
|
||||
|
||||
getDevice(deviceId) {
|
||||
return this.plejdDevices[deviceId];
|
||||
return this.plejdDevices[deviceId] || this.roomDevices[deviceId];
|
||||
}
|
||||
|
||||
getDeviceIdsByRoom(roomId) {
|
||||
return this.deviceIdsByRoom[roomId];
|
||||
}
|
||||
|
||||
getDeviceBySerialNumber(serialNumber) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue