fix: Reolink Trackmix cameras should be detected correctly (#2264)

- Closes: #2254
This commit is contained in:
Dermot Duffy
2025-12-08 17:23:59 -08:00
committed by GitHub
parent 13bea49429
commit bbdf96474e
2 changed files with 72 additions and 27 deletions
+1 -3
View File
@@ -104,9 +104,7 @@ export class ReolinkCamera extends EntityCamera {
// and must only be taken from the user config instead.
const match = uniqueID
? String(uniqueID).match(
/^(?<hostid>[A-Za-z0-9]+)_(?<channel_or_uid>[A-Za-z0-9]+)_/,
)
? String(uniqueID).match(/^(?<hostid>[^_]+)_(?<channel_or_uid>[^_]+)_/)
: null;
const hostid = match?.groups?.hostid ?? null;