Skip to content

Commit

Permalink
270 ha addon add syntax check to config parameters (#274)
Browse files Browse the repository at this point in the history
* fixed requirement status of client mode host

---------

Co-authored-by: Michael Metz <[email protected]>
  • Loading branch information
mime24 and Michael Metz authored Jan 15, 2025
1 parent ae45652 commit 446a0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_addons/templates/config.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ schema:
node_id: str
suggested_area: str
modbus_polling: bool
client_mode.host: match(\b((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\b)
client_mode.host: match(\b((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\b)?
client_mode.port: port?
client_mode.forward: bool?
#strings: # leider funktioniert es nicht die folgenden 3 parameter im schema aufzulisten. möglicherweise wird die verschachtelung nicht unterstützt.
Expand Down

0 comments on commit 446a0d8

Please sign in to comment.