Skip to content

Feature/media keys tabbed UI#98

Merged
Sholofly merged 6 commits into
devfrom
feature/media-keys-tabbed-ui
May 3, 2026
Merged

Feature/media keys tabbed UI#98
Sholofly merged 6 commits into
devfrom
feature/media-keys-tabbed-ui

Conversation

@Sholofly
Copy link
Copy Markdown
Owner

@Sholofly Sholofly commented May 3, 2026

No description provided.

- Add 40+ media key constants to const.py grouped by category (Power,
  Playback, Navigation, D-Pad, Colour, Digits)
- Add /api/keys endpoint to web.py
- Redesign web_ui.html: per-box tabs instead of grid, full-page remote
  control layout with D-pad cross, numpad, colour buttons, and all keys
- Add set_channel_by_number() to LGHorizonDevice for tuning by channel
  number instead of name
- Refactor set_channel to share _tune_to_channel helper
- Deduplicate channels in _refresh_channels: keep last entry per
  logicalChannelNumber (HD over SD)
- Add set_channel_by_number command to web.py
Move channel deduplication from _refresh_channels to get_profile_channels
so all channel IDs remain in _channels for state processor lookups.
Prevents KeyError when the box reports a channel variant (e.g. SD) that
was previously removed by dedup.
Web UI and CLI now use set_channel_by_number to prevent ambiguity
when multiple channels share the same name but have different numbers.
@Sholofly Sholofly merged commit 8f6a847 into dev May 3, 2026
2 checks passed
@Sholofly Sholofly deleted the feature/media-keys-tabbed-ui branch May 3, 2026 12:42
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