Skip to content

Commit

Permalink
fix value template
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGlauser committed Aug 10, 2023
1 parent 101d47b commit f464aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensors/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _home_assistant_discovery_helper(self, sensor_type: str, unit: str) -> dict:
"name": sensor_type.title(),
"state_topic": self.home_assistant_state_topic(),
"unit_of_measurement": unit,
"value_template": f"{{ value_json.{sensor_type}}}",
"value_template": f"{{{{ value_json.{sensor_type}}}}}",
"unique_id": identifier,
"device": {"identifiers": [identifier], "name": type(self).__name__},
}

0 comments on commit f464aa8

Please sign in to comment.