Skip to content

Commit

Permalink
Fix template low sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Sep 11, 2024
1 parent fc7f8a8 commit 1f9f248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/battery_notes/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def add_template_attribute(
def _async_setup_templates(self) -> None:
"""Set up templates."""
self.add_template_attribute(
"_state", Template(self._template), None, self._update_state
"_state", Template(self._template, self.hass), None, self._update_state
)

@callback
Expand Down

0 comments on commit 1f9f248

Please sign in to comment.