Skip to content

Commit

Permalink
Merge pull request #108 from DasBasti/96-no-change-in-scanning-interv…
Browse files Browse the repository at this point in the history
…al-during-charging

Fix scan interval update on charging
  • Loading branch information
DasBasti authored Jun 17, 2024
2 parents 3d30794 + 383121e commit 35f7492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/smarthashtag/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
DEFAULT_DRIVING_INTERVAL,
DEFAULT_SCAN_INTERVAL,
DOMAIN,
MIN_SCAN_INTERVAL,
)
from .coordinator import SmartHashtagDataUpdateCoordinator
from .entity import SmartHashtagEntity
Expand Down Expand Up @@ -1025,7 +1024,7 @@ def native_value(self) -> str | int | float:
else:
self.coordinator.update_interval = timedelta(
seconds=self.coordinator.config_entry.options.get(
MIN_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL
CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL
)
)

Expand Down

0 comments on commit 35f7492

Please sign in to comment.