diff --git a/custom_components/smarthashtag/sensor.py b/custom_components/smarthashtag/sensor.py index fdf97f2..fbe955a 100644 --- a/custom_components/smarthashtag/sensor.py +++ b/custom_components/smarthashtag/sensor.py @@ -22,7 +22,6 @@ DEFAULT_DRIVING_INTERVAL, DEFAULT_SCAN_INTERVAL, DOMAIN, - MIN_SCAN_INTERVAL, ) from .coordinator import SmartHashtagDataUpdateCoordinator from .entity import SmartHashtagEntity @@ -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 ) )