You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatyczne usuwanie nieaktualnych urządzeń po zmianie konta — Gdy użytkownik zmienia konto Energa (np. aktualizuje dane logowania), liczniki ze starego konta są teraz automatycznie usuwane z rejestrów urządzeń i podmiotów podczas konfiguracji integracji.
Szczegóły
Usuwanie odbywa się w funkcji async_setup_entry() po utworzeniu czujnika
Porównuje numery seryjne liczników wykrytych przez API z zarejestrowanymi urządzeniami
Usuwanie kaskadowe automatycznie usuwa wszystkie powiązane podmioty
Wymaga ponownego uruchomienia HA (a nie tylko ponownego załadowania wpisu konfiguracyjnego)
What's Changed
Auto-remove stale devices after account change — When a user switches Energa accounts (e.g., reconfigures credentials), meters from the old account are now automatically cleaned up from the device and entity registries during integration setup.
Details
Cleanup runs in async_setup_entry() after sensor creation
Compares API-discovered meter serials against registered devices
Cascade deletion removes all associated entities automatically
Requires HA Core restart (not just config entry reload) for new code to take effect