diff --git a/custom_components/xiaomi_miot/__init__.py b/custom_components/xiaomi_miot/__init__.py index 08ddcf0fc..1964812e9 100644 --- a/custom_components/xiaomi_miot/__init__.py +++ b/custom_components/xiaomi_miot/__init__.py @@ -841,6 +841,8 @@ def update_custom_scan_interval(self, only_custom=False): tim = timedelta(seconds=sec) if sec > 0 and tim != self.platform.scan_interval: self.platform.scan_interval = tim + if hasattr(self.platform, 'scan_interval_seconds'): + self.platform.scan_interval_seconds = tim.total_seconds() _LOGGER.debug('%s: Update custom scan interval: %s', self.name_model, tim) def update_custom_parallel_updates(self):