Skip to content

Commit

Permalink
Revert "fix!: HA permit join switch: disable automatically after 254 …
Browse files Browse the repository at this point in the history
…seconds (Koenkk#24245)"

This reverts commit 3220b27.
  • Loading branch information
rostwald committed Jan 9, 2025
1 parent 060ae99 commit 2ebf677
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2041,10 +2041,8 @@ export default class HomeAssistant extends Extension {
state_topic_postfix: 'info',
value_template: '{{ value_json.permit_join | lower }}',
command_topic: `${baseTopic}/request/permit_join`,
state_on: 'true',
state_off: 'false',
payload_on: '{"time": 254}',
payload_off: '{"time": 0}',
payload_on: 'true',
payload_off: 'false',
},
},
);
Expand Down
6 changes: 2 additions & 4 deletions test/extensions/homeassistant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2514,10 +2514,8 @@ describe('Extension: HomeAssistant', () => {
state_topic: 'zigbee2mqtt/bridge/info',
value_template: '{{ value_json.permit_join | lower }}',
command_topic: 'zigbee2mqtt/bridge/request/permit_join',
state_on: 'true',
state_off: 'false',
payload_on: '{"time": 254}',
payload_off: '{"time": 0}',
payload_on: 'true',
payload_off: 'false',
origin: origin,
device: devicePayload,
availability: [{topic: 'zigbee2mqtt/bridge/state', value_template: '{{ value_json.state }}'}],
Expand Down

0 comments on commit 2ebf677

Please sign in to comment.