Skip to content

fix: replace string.Equals with ToUpper comparison in SwitchesController (#94)#95

Merged
sondresjolyst merged 3 commits intomainfrom
development
Apr 16, 2026
Merged

fix: replace string.Equals with ToUpper comparison in SwitchesController (#94)#95
sondresjolyst merged 3 commits intomainfrom
development

Conversation

@sondresjolyst
Copy link
Copy Markdown
Owner

No description provided.

Only return switches with type 'SOCKET'. This excludes SHRGBC light
bulbs and any other unknown device types, keeping the list to
actionable socket devices only.
@sondresjolyst sondresjolyst changed the title Development fix: replace string.Equals with ToUpper comparison in SwitchesController (#94) Apr 16, 2026
@sondresjolyst sondresjolyst merged commit 18d842f into main Apr 16, 2026
5 checks passed
sondresjolyst added a commit that referenced this pull request Apr 18, 2026
* fix: replace string.Equals with ToUpper comparison in SwitchesController (#94) (#95)

* fix(switches): whitelist SOCKET type in GET /api/switches

Only return switches with type 'SOCKET'. This excludes SHRGBC light
bulbs and any other unknown device types, keeping the list to
actionable socket devices only.

* fix: replace string.Equals with ToUpper comparison in SwitchesController (#94)

* chore(main): release 1.7.2 (#96)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat!: rename roles

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant