Change behavior to add all devices to Home Assistan, whether they are hidden in the Plejd app or not

This commit is contained in:
Victor Hagelbäck 2021-06-21 12:06:08 +02:00
parent 42bf415fa5
commit 56870879b8
5 changed files with 2 additions and 37 deletions

View file

@ -49,13 +49,6 @@ class DeviceRegistry {
/** @param outputDevice {import('types/DeviceRegistry').OutputDevice} */
addOutputDevice(outputDevice) {
if (outputDevice.hiddenFromIntegrations || outputDevice.hiddenFromRoomList) {
logger.verbose(`Device ${outputDevice.name} is hidden and will not be included.
Hidden from room list: ${outputDevice.hiddenFromRoomList}
Hidden from integrations: ${outputDevice.hiddenFromIntegrations}`);
return;
}
this.outputDevices = {
...this.outputDevices,
[outputDevice.uniqueId]: outputDevice,