Просмотр исходного кода

docs: comment temporary revert of IP sweep function

Jason Rumney 16 часов назад
Родитель
Сommit
d58c81be81
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      custom_components/tuya_local/discovery.py

+ 3 - 0
custom_components/tuya_local/discovery.py

@@ -100,6 +100,9 @@ class TuyaLANRediscovery:
     @callback
     def async_start(self) -> None:
         """Begin periodic discovery tasks."""
+        # TEMPORARILY DISABLED: the sweep is a bit too aggressive and can cause
+        # incorrect IP updates if a device is temporarily unreachable, see #5713.
+        #
         # if self._unsub_sweep is None:
         #     self._unsub_sweep = async_track_time_interval(
         #         self._hass, self._async_sweep, SWEEP_INTERVAL