fix: recognize linux WiFi source as live data in UI

The sensing service's _applyServerSource only matched "esp32", "wifi",
and "live" as live sources.  The new Linux path emits "linux:<SSID>"
(and the Windows path emits "wifi:<SSID>"), both of which fell through
to "server-simulated".  Match the prefixed variants too.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mstoeck3 2026-03-16 16:02:55 +01:00
parent b3d44a257d
commit 9e2a241dab

View file

@ -290,7 +290,7 @@ class SensingService {
*/
_applyServerSource(rawSource) {
this._serverSource = rawSource;
if (rawSource === 'esp32' || rawSource === 'wifi' || rawSource === 'live') {
if (rawSource === 'esp32' || rawSource === 'wifi' || rawSource === 'live' || rawSource.startsWith('linux:') || rawSource.startsWith('wifi:')) {
this._setDataSource('live');
} else if (rawSource === 'simulated' || rawSource === 'simulate') {
this._setDataSource('server-simulated');