fix: Reolink Trackmix cameras should be detected correctly (#2264)
- Closes: #2254
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user