Skip to content

Commit

Permalink
add lines of code sensor (excluding secrets)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkywafer committed Aug 15, 2020
1 parent 68e6a37 commit 0be17a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/system/lines.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sensor:
- platform: command_line
name: yaml config lines
command: "find /config -name '*.yaml' ! -name '*secrets.yaml' ! -name '.ip_authenticated.yaml' ! -path '/config/esphome/*' | xargs cat | wc -l"
unit_of_measurement: 'Lines'
scan_interval: 14400

0 comments on commit 0be17a1

Please sign in to comment.