homekit: fix doorbell readme generation on devices with no camera.

This commit is contained in:
Koushik Dutta
2022-07-22 22:16:10 -07:00
parent 301fb98b4c
commit 23182f3345

View File

@@ -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;