Fix wall oven device-type detection (issue #55)
Ovens with modelNum like TP1X_DA-KS-OVEN-0107X report no oneUiVersion and don't match any consumer-prefix or other fallback token in for_device_by_model, so the device came back as "unknown" and every resource fell through to the global capability registry instead of oven.py's own -- explaining the unbound /connected/vs/0 href, the unrelated-looking entities, and the non-functional controls reported in the issue. Add a '-OVEN-' modelNum token fallback, mirroring the existing '-RANGE-' fallback from issue #44.
This commit is contained in:
6 files changed
+371
No files matched your search
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"state_keys": [
|
||||
"alarm_code",
|
||||
"child_lock",
|
||||
"cloud_connected",
|
||||
"cook_time",
|
||||
"current_temp_c",
|
||||
"cycle_active",
|
||||
"door_open",
|
||||
"fast_preheat",
|
||||
"finish_time",
|
||||
"firmware_update",
|
||||
"lamp",
|
||||
"machine_state",
|
||||
"natural_steam",
|
||||
"operation_time_minutes",
|
||||
"oven_mode",
|
||||
"oven_setpoint",
|
||||
"oven_state",
|
||||
"power_switch",
|
||||
"progress_percentage",
|
||||
"remote_control",
|
||||
"sound"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user