mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
reolink: Check deviceInfo exists (#1935)
Co-authored-by: Gianluca Ruocco <gianluca.ruocco@xarvio.com>
This commit is contained in:
@@ -90,7 +90,7 @@ export interface NetData {
|
||||
}
|
||||
|
||||
export const isDeviceNvr = (deviceInfo: DevInfo) => ['HOMEHUB', 'NVR', 'NVR_WIFI'].includes(deviceInfo.exactType);
|
||||
export const isDeviceHomeHub = (deviceInfo: DevInfo) => deviceInfo.exactType === 'HOMEHUB';
|
||||
export const isDeviceHomeHub = (deviceInfo: DevInfo) => deviceInfo?.exactType === 'HOMEHUB';
|
||||
|
||||
export class ReolinkCameraClient {
|
||||
credential: AuthFetchCredentialState;
|
||||
|
||||
Reference in New Issue
Block a user