Skip to content

Commit 621cae2

Browse files
authored
fix(ignore): networkmap typing (#27566)
1 parent 711b456 commit 621cae2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/extension/networkMap.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ export default class NetworkMap extends Extension {
268268
networkAddress: device.zh.networkAddress,
269269
manufacturerName: device.zh.manufacturerName,
270270
modelID: device.zh.modelID,
271-
// biome-ignore lint/style/noNonNullAssertion: TODO: biome migration: wrong typing? will be undefined if type=EndDevice?
272-
failed: failed.get(device)!,
271+
failed: failed.get(device),
273272
lastSeen: device.zh.lastSeen,
274273
definition,
275274
});

lib/types/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export interface Zigbee2MQTTNetworkMap {
263263
networkAddress: number;
264264
manufacturerName: string | undefined;
265265
modelID: string | undefined;
266-
failed: string[];
266+
failed?: string[];
267267
lastSeen: number | undefined;
268268
definition?: {model: string; vendor: string; supports: string; description: string};
269269
}[];

0 commit comments

Comments
 (0)