Skip to content

Commit

Permalink
Merge pull request #126 from Snuffy2/Fix-missed-Recorder-cleanup-in-B…
Browse files Browse the repository at this point in the history
…inary-Sensor

Fix missed Recorder cleanup in Binary Sensor
  • Loading branch information
enkama authored Jul 11, 2024
2 parents f2efd10 + 5b3ee3d commit 57d5161
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/variable/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ def __init__(
ENTITY_ID_FORMAT, self._variable_id, hass=self._hass
)
_LOGGER.debug(f"({self._attr_name}) [init] entity_id: {self.entity_id}")
if self._exclude_from_recorder:
self.disable_recorder()

async def async_added_to_hass(self):
"""Run when entity about to be added."""
Expand Down

0 comments on commit 57d5161

Please sign in to comment.