Skip to content

Commit

Permalink
strip sensor. from entity_id
Browse files Browse the repository at this point in the history
as this will be handled automatically.
  • Loading branch information
Hellowlol committed Dec 27, 2020
1 parent 7825575 commit c8cab57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/nordpool/create_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
@click.option('--path', default="result.yaml", help="What path to write the file to.")
def make_sensors(entity_id, friendly_name, icon, unit, path):
"""A simple tool to make 48 template sensors, one for each hour."""

entity_id = entity_id.replace("sensor.", "")

head = {"sensor": [{"platform": "template", "sensors": {}}]}

Expand Down

0 comments on commit c8cab57

Please sign in to comment.