Skip to content

Commit

Permalink
chore: Fix misspelling
Browse files Browse the repository at this point in the history
chore!: Rename websocket type for device action/trigger

BREAKING CHANGE: Message type change for device actions. Requires updated companion component.
  • Loading branch information
zachowj committed Sep 24, 2023
1 parent 7d123fd commit d4c4349
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/common/integration/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export enum IntegrationEvent {
}

export enum MessageType {
DeviceAction = 'nodered/device_action',
DeviceTrigger = 'nodered/device_trigger',
DeviceAction = 'nodered/device/action',
DeviceTrigger = 'nodered/device/trigger',
Discovery = 'nodered/discovery',
Entity = 'nodered/entity',
RemoveDevice = 'nodered/device/remove',
SentenseTrigger = 'nodered/sentence',
SentenceTrigger = 'nodered/sentence',
UpdateConfig = 'nodered/entity/update_config',
Webhook = 'nodered/webhook',
}
Expand Down
4 changes: 2 additions & 2 deletions src/nodes/sentence/SentenceIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MessageType } from '../../common/integration/Integration';
import { SentenceNode } from '.';

export interface SentenceDiscoveryPayload extends DiscoveryMessage {
type: MessageType.SentenseTrigger;
type: MessageType.SentenceTrigger;
sentences: string[];
response?: string;
}
Expand All @@ -17,7 +17,7 @@ export default class SentenceIntegration extends BidirectionalIntegration<Senten
? undefined
: this.node.config.response;
return {
type: MessageType.SentenseTrigger,
type: MessageType.SentenceTrigger,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
server_id: this.node.config.server!,
sentences: this.node.config.sentences,
Expand Down

0 comments on commit d4c4349

Please sign in to comment.