Handle when scene and device have the same Id

- Catch emitted errors in Mqtt
This commit is contained in:
Victor Hagelbäck 2021-02-10 10:10:28 +01:00
parent dca491bf00
commit ef7a5086a1
4 changed files with 27 additions and 10 deletions

View file

@ -65,6 +65,10 @@ class DeviceRegistry {
return (this.plejdDevices[deviceId] || {}).name;
}
getScene(sceneId) {
return this.sceneDevices[sceneId];
}
getSceneName(sceneId) {
return (this.sceneDevices[sceneId] || {}).name;
}