Repository navigation
0.2.5
Addresses feedback from the Home Assistant integration review (home-assistant/core#161442).
Security
- Redact the
authorization(Firebase bearer token) andauthheaders before writing request headers to the debug log, so enabling debug logging no longer leaks reusable credentials. - Remove the module-level
logging.basicConfig(level=logging.DEBUG)calls so the library no longer forces global debug logging on the consuming application.
Fixed
- Reuse the caller-supplied
aiohttpsession for Firebase requests instead of lettingFirebaseAppcreate its own, and close it onGaposa.close(). Previously a separate Firebase session was created and never closed, leaking a session per login/entry. - Propagate polling failures:
PollManager.execute()no longer swallows every exception; if polling keeps failing until the retry limit, the originating exception is raised soGaposa.update()fails instead of returning stale/empty data.
Changed
Gaposa.update()no longer fires per-device listeners by default (via anotifyListenersflag); command-driven polls still notify. This avoids a redundant intermediate update per device on every scheduled refresh.