Fix autorestore logic and protocol badge per device type
Autorestore fixes: - Snapshot WLED state before connect() mutates it (lor, AudioReactive) - Gate restore on auto_shutdown setting (was unconditional) - Remove misleading auto_restore capability from serial provider - Default auto_shutdown to false for all new devices Protocol badge fixes: - Show correct protocol per device type (OpenRGB SDK, MQTT, WebSocket) - Was showing "Serial" for all non-WLED devices Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -110,10 +110,10 @@ async def create_device(
|
||||
detail=f"Failed to connect to {device_type} device at {device_url}: {e}"
|
||||
)
|
||||
|
||||
# Resolve auto_shutdown default: True for adalight, False otherwise
|
||||
# Resolve auto_shutdown default: False for all types
|
||||
auto_shutdown = device_data.auto_shutdown
|
||||
if auto_shutdown is None:
|
||||
auto_shutdown = device_type == "adalight"
|
||||
auto_shutdown = False
|
||||
|
||||
# Create device in storage
|
||||
device = store.create_device(
|
||||
|
||||
Reference in New Issue
Block a user