diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa93c90..25c0e3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/examples/editable_template_polygon.yaml b/examples/editable_template_polygon.yaml index 33a8e17..10e0f8c 100644 --- a/examples/editable_template_polygon.yaml +++ b/examples/editable_template_polygon.yaml @@ -1,5 +1,5 @@ esphome: - ... + # [...] on_boot: # Set polygon zone with values form number components - LD2450.zone.update_polygon: @@ -7,10 +7,10 @@ esphome: 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"