Skip to content

Commit

Permalink
Home Assistant auto-discovery - set "code required" flags to false if…
Browse files Browse the repository at this point in the history
… no code provided
  • Loading branch information
Claudiu Bucur committed Jun 16, 2024
1 parent 20f2663 commit 6750a5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions paradox/interfaces/mqtt/entities/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ def serialize(self):
))
if self.code is not None:
config['code']=self.code
else:
config.update(dict(
code_arm_required=False,
code_disarm_required=False,
code_trigger_required=False
))
return config

@property
Expand Down

0 comments on commit 6750a5b

Please sign in to comment.