Fix mock device RGBW badge, add icons to audio/value source card badges
Fall back to stored device rgbw field when health check doesn't report it (mock devices have no hardware to query). Add emoji icons to all property badges on audio source and value source cards. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -272,6 +272,13 @@ class ProcessorManager:
|
||||
|
||||
ds = self._devices[device_id]
|
||||
h = ds.health
|
||||
# Fall back to stored device rgbw when health check doesn't report it
|
||||
# (e.g. mock devices have no real hardware to query)
|
||||
rgbw = h.device_rgbw
|
||||
if rgbw is None and self._device_store:
|
||||
dev = self._device_store.get_device(device_id)
|
||||
if dev:
|
||||
rgbw = getattr(dev, "rgbw", False)
|
||||
return {
|
||||
"device_id": device_id,
|
||||
"device_online": h.online,
|
||||
@@ -279,7 +286,7 @@ class ProcessorManager:
|
||||
"device_name": h.device_name,
|
||||
"device_version": h.device_version,
|
||||
"device_led_count": h.device_led_count,
|
||||
"device_rgbw": h.device_rgbw,
|
||||
"device_rgbw": rgbw,
|
||||
"device_led_type": h.device_led_type,
|
||||
"device_fps": h.device_fps,
|
||||
"device_last_checked": h.last_checked,
|
||||
|
||||
Reference in New Issue
Block a user