Explorar o código

fix(discovery): disable blind updating of IP addresses.

There is no confirmation step done after the address discovery, and
there seem to be cases where the wrong IP address is updated on devices
that temporarily went AWOL.

This feature needs more work to make sure it doesn't update working
addresses to non-working ones.

Issue #5713, possibly also involved in other reports of devices
stopping working soon after startup and not recovering, which users
report as starting in the past 1 or 2 versions rather than from around
2026.4.0 as with other known protocol 3.4 device issues.
Jason Rumney hai 21 horas
pai
achega
9b8b05747e
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      custom_components/tuya_local/discovery.py

+ 4 - 4
custom_components/tuya_local/discovery.py

@@ -100,10 +100,10 @@ class TuyaLANRediscovery:
     @callback
     def async_start(self) -> None:
         """Begin periodic discovery tasks."""
-        if self._unsub_sweep is None:
-            self._unsub_sweep = async_track_time_interval(
-                self._hass, self._async_sweep, SWEEP_INTERVAL
-            )
+        # if self._unsub_sweep is None:
+        #     self._unsub_sweep = async_track_time_interval(
+        #         self._hass, self._async_sweep, SWEEP_INTERVAL
+        #     )
         if self._unsub_scan is None:
             self._unsub_scan = async_track_time_interval(
                 self._hass, self._async_discovery_scan, SCAN_INTERVAL