fix: HA Passwort-Auth loggt nicht mehr aus, Radio-Layout korrigiert

- Backend gibt 400 statt 401 bei falschen HA-Credentials zurück, damit
  der globale api.js-Logout-Handler nicht ausgelöst wird
- Null-Guard im JS nach api.post verhindert den "calendars of null"-Crash
- Radio-Buttons für Anmeldemethode nicht mehr in form-group, damit
  input[type=radio] kein width:100% bekommt und sauber nebeneinander liegt
This commit is contained in:
Scarriffle
2026-04-24 11:26:50 +02:00
parent 69f5789e2d
commit c5c6a5f71b
3 changed files with 10 additions and 9 deletions

View File

@@ -1325,6 +1325,7 @@ function bindHAAccountModal() {
saveBtn.textContent = 'Verbinde…';
try {
const account = await api.post('/homeassistant/accounts', body);
if (!account) return;
state.haAccounts.push(account);
renderCalendarList();
closeModal('modal-ha-account');