mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-11 01:04:56 +02:00
7e9ff2e3aa
The /api/channels/<idx>/scope route rejected idx>=8 with "Channel index out of range (0-7)" even though current firmwares expose up to 40 slots (send_device_query reports max_channels=40 in our logs). Users couldn't set a region scope on channels like #ubot (idx 8) or #swietokrzyskie (idx 15) — the UI showed the modal but Save returned 400. Use device_manager._max_channels (set from send_device_query at connect) as the upper bound, with 8 as a safe fallback if the DM is unreachable. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>