.value = row.children[2].innerText;
        } else if (ev.target.innerText === 'unpair') {
            const form = document.querySelector('#homekit-unpair');
            const row = ev.target.closest('tr');
            form.children[0].value = row.children[3].innerText;
        }
    });

    document.getElementById('homekit-pair').addEventListener('submit', async ev => {
        ev.preventDefault();

        const body = new FormData(ev.target);
        body.set('url', body.get('url') + '&pin=' + body.get