Skip to content

Commit

Permalink
fix(automation-actions): remove channel from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Oct 25, 2024
1 parent 9edb752 commit 564283e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugins/core/src/automation-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ addAction(ScryptedInterface.Notifier, {
type: 'interface',
deviceFilter: `deviceInterface === '${ScryptedInterface.VideoCamera}' || deviceInterface === '${ScryptedInterface.Camera}'`,
},
notificationChannel: {
title: 'Channel (Android only)',
type: 'string',
},
}, async function invoke(device: ScryptedDevice & Notifier, storageSettings) {
let { notificationMediaUrl } = storageSettings;
if (notificationMediaUrl && !notificationMediaUrl?.includes('://')) {
Expand All @@ -104,6 +100,5 @@ addAction(ScryptedInterface.Notifier, {

return device.sendNotification(storageSettings.notificationTitle as string, {
body: storageSettings.notificationBody as string,
channel: storageSettings.notificationChannel as string,
}, notificationMediaUrl);
});

0 comments on commit 564283e

Please sign in to comment.