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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user