Skip to content

fix: restore PR #71 HTTP capability support (erased by force-push) - #75

Merged
frahlg merged 1 commit into
masterfrom
fix/restore-http-capability-pr71
Apr 16, 2026
Merged

frahlg merged 1 commit into
masterfrom
fix/restore-http-capability-pr71

Conversation

@frahlg

@frahlg frahlg commented Apr 16, 2026

Copy link
Copy Markdown
Member

Summary

Restores the changes from PR #71 (by @erikarenhill), which were erased from origin/master when a concurrent session force-pushed 48e0d28 on top of 7cd2d9f, bypassing the PR #71 merge commit (e83945e). The v0.5.3 tag on origin still points to the now-orphaned fb3ded2, but none of the code changes remained reachable from master.

Cherry-picks 02a3001 onto current master (0.6.0) with conflict resolution in web/settings.js:

Changes

  • drivers/easee_cloud.lua — adds http_hosts = { "api.easee.com" } to DRIVER metadata.
  • go/internal/drivers/catalog.go — adds HTTPHosts field to CatalogEntry + parses http_hosts from Lua metadata.
  • web/settings.js — catalog-add flow reads http_hosts from selected driver's metadata.

Test plan

  • Add Easee from catalog in UI, confirm capabilities.http.allowed_hosts = ["api.easee.com"] (from metadata, not hardcode).
  • Confirm existing cloud-driver credential config block still initializes.
  • Confirm no regression for mqtt/modbus catalog drivers.

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

…ariff label

- Frontend now handles the "http" protocol when adding drivers from the
  catalog, setting capabilities.http.allowed_hosts from the driver's
  http_hosts metadata. Fixes "must have mqtt, modbus, or http capability"
  validation error when adding cloud-based drivers like Easee.
- Added http_hosts to easee_cloud.lua DRIVER metadata and HTTPHosts
  field to CatalogEntry so the catalog API exposes it.
- Updated grid tariff label to "excl. VAT" with tooltip clarifying it's
  the DSO network fee, not a spot price component.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@frahlg
frahlg merged commit d4cc95e into master Apr 16, 2026
@frahlg
frahlg deleted the fix/restore-http-capability-pr71 branch April 16, 2026 18:01
github-actions Bot pushed a commit that referenced this pull request Apr 16, 2026
## [0.6.1](v0.6.0...v0.6.1) (2026-04-16)

### Bug Fixes

* add HTTP capability support for catalog drivers + clarify grid tariff label ([#75](#75)) ([d4cc95e](d4cc95e))
@frahlg frahlg mentioned this pull request Oct 8, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants