mirror of
https://github.com/koush/scrypted.git
synced 2026-09-18 09:40:44 +01:00
homekit: fix doorbell readme generation on devices with no camera.
This commit is contained in:
@@ -339,7 +339,7 @@ export class HomeKitPlugin extends ScryptedDeviceBase implements MixinProvider,
|
||||
HOMEKIT_MIXIN,
|
||||
];
|
||||
|
||||
if (type === ScryptedDeviceType.Doorbell || type === ScryptedDeviceType.Camera)
|
||||
if (interfaces.includes(ScryptedInterface.VideoCamera) && (type === ScryptedDeviceType.Doorbell || type === ScryptedDeviceType.Camera))
|
||||
ret.push(ScryptedInterface.Readme);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user