Skip to content

Commit

Permalink
fix(sentence): Sentence node requires hass-node-red v2.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Sep 24, 2023
1 parent b7a458f commit 4449d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editor/exposenode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getServerId(): string | undefined {
function getIntegrationVersion(): string {
const serverId = getServerId();

if (serverId) {
if (serverId && version[serverId]) {
return version[serverId];
}

Expand Down Expand Up @@ -128,8 +128,8 @@ function render() {
break;
case NodeType.PollState:
case NodeType.Tag:
case NodeType.Zone:
case NodeType.Time:
case NodeType.Zone:
break;
default:
renderEventNode();
Expand Down Expand Up @@ -223,7 +223,7 @@ const NodeMinIntegraionVersion = {
[NodeType.Device]: '0.5.0',
[NodeType.Number]: '1.3.0',
[NodeType.Select]: '1.4.0',
[NodeType.Sentence]: '2.0.0',
[NodeType.Sentence]: '2.2.0',
[NodeType.Sensor]: '1.1.0',
[NodeType.Switch]: '1.1.0',
[NodeType.Tag]: '0.5.0',
Expand Down

0 comments on commit 4449d9b

Please sign in to comment.