Skip to content

Commit

Permalink
fix(ignore): Fixes quote type for update JSON attribute discovery (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mundschenk-at authored Nov 11, 2023
1 parent c8dcd71 commit baae082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ export default class HomeAssistant extends Extension {
latest_version_template: `{{ value_json['update']['latest_version'] }}`,
json_attributes_topic: `${settings.get().mqtt.base_topic}/${entity.name}`, // state topic
json_attributes_template:
`{'in_progress': {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} }`,
`{"in_progress": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} }`,
},
};
configs.push(updateSensor);
Expand Down

0 comments on commit baae082

Please sign in to comment.