Skip to content

Commit

Permalink
fix: Fix 'dict object' has no attribute 'ir_code_to_send' error. #1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jul 18, 2023
1 parent 313865b commit dec9191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/extension/homeassistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ export default class HomeAssistant extends Extension {
object_id: firstExpose.property,
mockProperties: [], // Already mocked above in case access STATE is supported
discovery_payload: {
state_topic: firstExpose.access & ACCESS_STATE,
value_template: `{{ value_json.${firstExpose.property} }}`,
command_topic_prefix: endpoint,
command_topic: true,
Expand Down

0 comments on commit dec9191

Please sign in to comment.