Skip to content

0.2.5

Choose a tag to compare

@mwatson2 mwatson2 released this 14 Jul 04:34
· 4 commits to main since this release
afb9729

Addresses feedback from the Home Assistant integration review (home-assistant/core#161442).

Security

  • Redact the authorization (Firebase bearer token) and auth headers 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 aiohttp session for Firebase requests instead of letting FirebaseApp create its own, and close it on Gaposa.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 so Gaposa.update() fails instead of returning stale/empty data.

Changed

  • Gaposa.update() no longer fires per-device listeners by default (via a notifyListeners flag); command-driven polls still notify. This avoids a redundant intermediate update per device on every scheduled refresh.