Skip to content

Commit

Permalink
Revert "Respect climate system_mode ACCESS_SET bit in Home Assistant (K…
Browse files Browse the repository at this point in the history
…oenkk#14715)"

This reverts commit 58c8001.
  • Loading branch information
xworld21 committed Nov 6, 2022
1 parent 5e2df18 commit 1fb9948
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ export default class HomeAssistant extends Extension {
discoveryEntry.discovery_payload.mode_state_topic = true;
discoveryEntry.discovery_payload.mode_state_template = `{{ value_json.${mode.property} }}`;
discoveryEntry.discovery_payload.modes = mode.values;
if (mode.access & ACCESS_SET) {
discoveryEntry.discovery_payload.mode_command_topic = true;
}
discoveryEntry.discovery_payload.mode_command_topic = true;
}

const state = firstExpose.features.find((f) => f.name === 'running_state');
Expand Down

0 comments on commit 1fb9948

Please sign in to comment.