Skip to content

fix(system): fail loud on power-info read failure; balance README parens - #84

Merged
millsmillsymills merged 1 commit into
phase1from
fix/review-followups
Jun 3, 2026
Merged

millsmillsymills merged 1 commit into
phase1from
fix/review-followups

Conversation

@millsmillsymills

Copy link
Copy Markdown
Contributor

Addresses review findings from the #79/#81 merges.

Changes

  • system_power_info returns None on RPC-level failure (timeout, non-OK status, exception) instead of {}. flipperzero_system_power_info now raises ToolError("power info unavailable") on None, matching the fail-loud convention of system_protobuf_version/system_datetime. A genuinely-empty result still returns {"power": {}}.
  • README ## Status: balanced the parentheses around the read-tools list.
  • Added a test for the power-info failure path.

Validation

  • uv run pytest -m "not integration" -q -> 134 passed, 2 deselected
  • uv run ruff check / ruff format --check
  • uv run ty check src/flipperzero_mcp/

Closes #82.
Closes #83.

🤖 Generated with Claude Code

system_power_info now returns None on RPC-level failure (timeout, non-OK,
exception) so the tool raises ToolError instead of returning an empty power
dict indistinguishable from a genuinely-empty result. Matches the fail-loud
convention of the other system read tools.

Closes #82.
Closes #83.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@millsmillsymills
millsmillsymills merged commit 2714be7 into phase1 Jun 3, 2026
5 checks passed
@millsmillsymills
millsmillsymills deleted the fix/review-followups branch June 3, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant