Skip to content

Commit

Permalink
fix: Fix Home Assistant `TypeError: object of type 'NoneType' has no …
Browse files Browse the repository at this point in the history
…len()` error. #17861
  • Loading branch information
Koenkk committed Aug 2, 2023
1 parent f619610 commit ed22ece
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 @@ -890,7 +890,7 @@ export default class HomeAssistant extends Extension {
const lookup: {[s: string]: KeyValue} = {
action: {icon: 'mdi:gesture-double-tap'},
programming_mode: {icon: 'mdi:calendar-clock'},
program: {value_template: `{{ value_json.${firstExpose.property}|default("") ` +
program: {value_template: `{{ value_json.${firstExpose.property}|default('',true) ` +
`| truncate(254, True, '', 0) }}`},
};
if (firstExpose.access & ACCESS_STATE) {
Expand Down

0 comments on commit ed22ece

Please sign in to comment.