Skip to content

Commit

Permalink
fix: Fix Home Assistant program not truncated when too large #19788
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jan 2, 2024
1 parent cb7b773 commit 32b1d5b
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 @@ -1002,7 +1002,7 @@ export default class HomeAssistant extends Extension {
action: {icon: 'mdi:gesture-double-tap'},
level_config: {entity_category: 'diagnostic'},
programming_mode: {icon: 'mdi:calendar-clock'},
program: {value_template: `{{ value_json.${firstExpose.property}|default('',true) ` +
program: {value_template: `{{ value_json.${firstExpose.property}|default('',True) ` +
`| truncate(254, True, '', 0) }}`},
};
if (firstExpose.access & ACCESS_STATE) {
Expand Down

0 comments on commit 32b1d5b

Please sign in to comment.