Sfoglia il codice sorgente

event: fix typo in last change

Missing underscore from private member variable name.
Thanks to @gravy6 for finding this
Issue #1818
Jason Rumney 1 anno fa
parent
commit
245f5cfa26
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      custom_components/tuya_local/event.py

+ 1 - 1
custom_components/tuya_local/event.py

@@ -62,7 +62,7 @@ class TuyaLocalEvent(TuyaLocalEntity, EventEntity):
             if value is not None:
             if value is not None:
                 # filter out full polls pulling the current ongoing value,
                 # filter out full polls pulling the current ongoing value,
                 # but limit this to allow repeats to come through on non-full polls
                 # but limit this to allow repeats to come through on non-full polls
-                if value == self.last_value and dps["full_poll"]:
+                if value == self._last_value and dps["full_poll"]:
                     _LOGGER.debug(
                     _LOGGER.debug(
                         "%s/%s value %s is the same as last value, ignoring",
                         "%s/%s value %s is the same as last value, ignoring",
                         self._config._device.config,
                         self._config._device.config,