Explorar o código

event: fix typo in last change

Missing underscore from private member variable name.
Thanks to @gravy6 for finding this
Issue #1818
Jason Rumney hai 1 ano
pai
achega
245f5cfa26
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:
                 # filter out full polls pulling the current ongoing value,
                 # 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(
                         "%s/%s value %s is the same as last value, ignoring",
                         self._config._device.config,