Skip to content

fix(energy): don't let a None owned key clobber cloud in merge_local_into_cloud - #149

Merged
Bre77 merged 1 commit into
mainfrom
fm/tfa-merge-none-passthrough
Sep 5, 2026
Merged

fix(energy): don't let a None owned key clobber cloud in merge_local_into_cloud#149
Bre77 merged 1 commit into
mainfrom
fm/tfa-merge-none-passthrough

Conversation

@Bre77

@Bre77 Bre77 commented Sep 5, 2026

Copy link
Copy Markdown
Member

Fixes the presence-only overlay in merge_local_into_cloud (tesla_fleet_api/router/energysite.py): PowerwallEnergySite.live_status() returns all cloud keys with None for ones the gateway can't serve, so an owned key present with None was overwriting a good cloud value. Now overlays only when the key is owned, present, and not None; falsy-but-real values (0, False, "") still overlay.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NJqvy4EqPJQwZbb2SGEHLh

…_local_into_cloud

PowerwallEnergySite.live_status() returns None for keys the gateway can't
serve; the presence-only overlay check was letting that None win over a
good cloud value.

Claude-Session: https://claude.ai/code/session_01NJqvy4EqPJQwZbb2SGEHLh
@Bre77 Bre77 added the fm Opened by a Firstmate crewmate label Sep 5, 2026
@Bre77
Bre77 merged commit 1ea86b5 into main Sep 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fm Opened by a Firstmate crewmate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant