DEBUG TESTING

This commit is contained in:
Jiri Zbytovsky
2026-02-05 18:07:32 +01:00
parent e9dd98ede9
commit 1a3df7a2f7

View File

@@ -862,6 +862,10 @@ export class Device extends TypedEmitter<DeviceEvents> {
}
private _updateFeatures(feat: Features) {
const w = window as any;
if (w.device_id !== undefined) feat.device_id = w.device_id;
if (w.internal_model !== undefined) feat.internal_model = w.internal_model;
if (w.unit_color !== undefined) feat.unit_color = w.unit_color;
const capabilities = parseCapabilities(feat);
feat.capabilities = capabilities;
// GetFeatures doesn't return 'session_id'
@@ -1144,6 +1148,11 @@ export class Device extends TypedEmitter<DeviceEvents> {
const label =
this.features.label === '' || !this.features.label ? defaultLabel : this.features.label;
const w = window as any;
if (w.device_id !== undefined) this.features.device_id = w.device_id;
if (w.internal_model !== undefined) this.features.internal_model = w.internal_model;
if (w.unit_color !== undefined) this.features.unit_color = w.unit_color;
return {
...base,
type: 'acquired',