Fix udp packets for SSDP

This commit is contained in:
Robert Strouse 2024-01-13 20:30:58 -08:00
parent e7777b10c1
commit 1b35c7d835
8 changed files with 130 additions and 134 deletions

View file

@ -2181,8 +2181,7 @@ class Somfy {
_rooms.push(room);
divCtl += `<div class='room-row' data-roomid="${room.roomId}" onclick="somfy.selectRoom(${room.roomId});event.stopPropagation();">${room.name}</div>`;
}
if (rooms.length === 0) document.getElementById('divRoomSelector').style.display = 'none';
else document.getElementById('divRoomSelector').style.display = '';
document.getElementById('divRoomSelector').style.display = rooms.length === 0 ? 'none' : '';
document.getElementById('divRoomSelector-list').innerHTML = divCtl;
document.getElementById('divRoomList').innerHTML = divCfg;
document.getElementById('selShadeRoom').innerHTML = divOpts;