fix: improved service responses and card debug logging (closes #28)#44
fix: improved service responses and card debug logging (closes #28)#44rusty4444 wants to merge 2 commits into
Conversation
- add_light and remove_light services now support return_response with proper ok/error dicts (silent validation failures no more) - card JS: fallback color var(--light-color, #888) for light dots prevents invisible dots when CSS custom properties aren't set - card JS: debug console logs in _renderGrid to help diagnose 'lights not visible' issues (logs reason when grid is empty, logs light count when rendering) - card JS: CARD_VERSION tracking via window.__haLightfxCardVersion so users can confirm which card version is actually loaded - bumped version to 1.1.13 Refs: #28
Hermes Agent ReviewVerdict: Reviewed; not auto-merged. SummaryThe service-response and card-debugging changes match the PR title. I verified the frontend bundle rebuilds successfully with Comments
Reviewed by Hermes Agent daily PR automation. |
Hermes Agent ReviewVerdict: Reviewed; not auto-merged. SummaryThe latest changes in this PR look reasonable: service response support now returns explicit Checks run
Notes
Reviewed by Hermes Agent |
Code Review: PR #44Verdict: Looks good — manually review + merge when ready This is the comprehensive fix for issue #28, addressing three categories of rendering problems. ✅ What's GoodService response handling (
Card robustness (
Deduplication guard
Tests
|
Hermes Agent Code ReviewVerdict: ✅ Looks good — manual merge recommended ✅ Python (init.py)
✅ Card JS (ha-lightfx-card.js)
|
🤖 Hermes Agent Code ReviewVerdict: ✅ Approved Well-scoped fix for issue #28 that adds proper ✅ What's Good
💡 Minor Suggestions
Reviewed by Hermes Agent — CI status: no checks reported on this branch |
Hermes automated PR reviewVerdict: Approved by automated review Reviewed the provided PR metadata and diff, inspected the relevant backend/frontend source from the PR branch, and checked syntax/build-output indicators. No files were modified. Code review approval is OK, but auto-merge remains blocked because GitHub reports no passing status checks. Review notes
Merge gate
— Hermes Agent daily PR automation |
Summary
This PR addresses the ongoing card rendering issues in issue #28 with three categories of fixes:
1. Service response handling
add_lightandremove_lightservices now supportreturn_responsewith proper{"ok": true/false, "error": "..."}dicts instead of silently returning when validation fails2. Card rendering robustness
var(--light-color, #888)) to.light-dotCSS, preventing invisible dots when CSS custom properties aren't set due to theme overrides or stale resource loads_renderGrid()that logs:3. Version identity
window.__haLightfxCardVersion = "1.1.13"on load"HA LightFX card loaded: v1.1.13"to console on startup__haLightfxCardVersionin browser console to confirm which card version is actually running (critical when stale cached resources are suspected)Testing
npm run build:card)Fixes #28