• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Recached

FlexMeasures / flexmeasures-ha-integration
84%

Build:
DEFAULT BRANCH: main
Repo Added 30 Jan 2025 10:11AM UTC
Token y0GTPWKFJ5t8qilB1MADnIQeBCC3JUdlZ regen
Build 162 Last
Files 9
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • chore/move-integration-from-core-to-hacs
  • chore/upgrade-fm-client
  • feat/v0.4.0-modernization
  • feature/TUNES/automatic-change-control-type
  • feature/TUNES/create-service-send-frbc-instruction
  • feature/TUNES/limit-send-measurements
  • feature/TUNES/manual-frbc-schedule
  • feature/TUNES/send-active-actuator
  • feature/get-measurements-by-source
  • feature/services/expose-flex-model-context
  • feature/services/get_measurement
  • fix/TUNES/send-frbc-instruction
  • fix/credential-leak-in-log
  • fix/reload-integration-on-options-change
  • main
  • release/v0.3.8
  • v0.2.0
  • v0.2.0.dev0
  • v0.2.0.dev1
  • v0.2.0.dev2
  • v0.2.0.dev3
  • v0.2.1
  • v0.2.10
  • v0.2.11
  • v0.2.12
  • v0.2.13
  • v0.2.2
  • v0.2.3
  • v0.2.4
  • v0.2.5
  • v0.2.7
  • v0.2.8
  • v0.2.8.dev1
  • v0.2.8.dev2
  • v0.2.8.dev3
  • v0.2.9
  • v0.3.8
  • v0.3.9

13 Jul 2026 08:04PM UTC coverage: 84.029% (-0.04%) from 84.069%
29378873088

push

github

web-flow
fix: stop logging the FlexMeasures client (and thus the password) on websocket connect (#29)

WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on
every incoming S2 websocket connection. The client is a dataclass, so its
repr contains the configured password and username in plain text — they
ended up in the Home Assistant log, and in any log bundle shared for
support. The line was a leftover debug statement.

Adds a regression test that opens a websocket connection and asserts the
credentials do not appear in the captured log.

Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

342 of 407 relevant lines covered (84.03%)

0.84 hits per line

Relevant lines Covered
Build:
Build:
407 RELEVANT LINES 342 COVERED LINES
0.84 HITS PER LINE
Source Files on main
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29378873088 main fix: stop logging the FlexMeasures client (and thus the password) on websocket connect (#29) WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on every incoming S2 websocket connection. The client is a dataclass, so its repr c... push 15 Jul 2026 12:24AM UTC web-flow github
84.03
29317075993 feat/v0.4.0-modernization fix: address review — iot_class is cloud_polling, and be kind on rollback - manifest: the schedule is polled from FlexMeasures, not pushed to us (the websocket is the Resource Manager connecting *to* Home Assistant), so iot_class stays cloud_... Pull #30 14 Jul 2026 08:11AM UTC Flix6x github
85.21
29295848247 main fix: stop logging the FlexMeasures client (and thus the password) on websocket connect (#29) WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on every incoming S2 websocket connection. The client is a dataclass, so its repr c... push 14 Jul 2026 12:26AM UTC web-flow github
84.03
29285313532 feat/v0.4.0-modernization feat: warn at startup when the FlexMeasures server is too old flexmeasures-client >=0.8 posts and reads sensor data through endpoints that FlexMeasures only serves from 0.28.0 on (scheduling needs 0.27.0). Against an older server those calls 404 ... Pull #30 13 Jul 2026 09:11PM UTC Flix6x github
84.32
29283496101 feat/v0.4.0-modernization test: configure asset_id in the smoke fixture's S2 section v0.4.0 refuses an S2 websocket connection when the S2 section is not configured, and the seeded entry is an old v2 one, which predates asset_id. Give the fixture a complete S2 section, so... Pull #30 13 Jul 2026 08:43PM UTC Flix6x github
84.12
29282883954 feat/v0.4.0-modernization ci: install the integration's requirements with uv, like Home Assistant does pip refuses s2-python on Python 3.14 (it declares Requires-Python <3.14), so the test job could not install flexmeasures-client[s2] on the Python that Home Assistant 202... Pull #30 13 Jul 2026 08:34PM UTC Flix6x github
84.12
29280991111 v0.3.9 fix: stop logging the FlexMeasures client (and thus the password) on websocket connect (#29) WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on every incoming S2 websocket connection. The client is a dataclass, so its repr c... push 13 Jul 2026 08:07PM UTC web-flow github
84.03
29280931271 main fix: stop logging the FlexMeasures client (and thus the password) on websocket connect (#29) WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on every incoming S2 websocket connection. The client is a dataclass, so its repr c... push 13 Jul 2026 08:06PM UTC web-flow github
84.03
29280800617 fix/credential-leak-in-log fix: stop logging the FlexMeasures client (and thus the password) on websocket connect WebSocketHandler logged the whole FlexMeasuresClient at WARNING level on every incoming S2 websocket connection. The client is a dataclass, so its repr contain... push 13 Jul 2026 08:04PM UTC Flix6x github
84.03
29280132571 v0.3.8 v0.3.8: fix the client pin that broke v0.3.7, revive CI, add real-HA smoke test (#28) * refactor: use const Signed-off-by: F.N. Claessen <felix@seita.nl> * refactor: use const for FM_CLIENT key Signed-off-by: F.N. Claessen <felix@seita.nl> * ... push 13 Jul 2026 07:54PM UTC web-flow github
84.07
See All Builds (158)

Badge your Repo: flexmeasures-ha-integration

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc