Skip to content

Commit

Permalink
Fix yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
TillFleisch committed Jun 10, 2024
1 parent 9a8eaf0 commit 788aebf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ repos:
rev: v17.0.6
hooks:
- id: clang-format

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.29.0
hooks:
- id: yamllint
6 changes: 3 additions & 3 deletions examples/editable_template_polygon.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
esphome:
...
# [...]
on_boot:
# Set polygon zone with values form number components
- LD2450.zone.update_polygon:
id: template_zone
polygon: !lambda |-
return {ld2450::Point(id(point_x1).state*1000,id(point_y1).state*1000), ld2450::Point(id(point_x2).state*1000,id(point_y2).state*1000), ld2450::Point(id(point_x3).state*1000,id(point_y3).state*1000), ld2450::Point(id(point_x4).state*1000,id(point_y4).state*1000)};
...
# [...]

LD2450:
...
# [...]
zones:
- zone:
name: "Templated Zone"
Expand Down

0 comments on commit 788aebf

Please sign in to comment.