diff --git a/www/add.html b/www/add.html index 53665777..bcb9e1c7 100644 --- a/www/add.html +++ b/www/add.html @@ -130,11 +130,11 @@ await getSources('homekit-table', 'api/homekit'); const rows = document.querySelectorAll('#homekit-table tr'); - rows.forEach((row) => { + rows.forEach((row, i) => { let commands = ''; if (row.children[2].innerText.indexOf('status=1') > 0) { commands += 'pair'; - } else if (row.children[3].innerText) { + } else if (i > 0 && row.children[3].innerText) { commands += 'unpair'; } row.innerHTML += `