4
0
Эх сурвалжийг харах

Event: include extra_state_attributes properly

extra_state_attributes is a cached_property, not a function call.

Issue #1578
Jason Rumney 2 жил өмнө
parent
commit
ddd3db7f48

+ 1 - 1
custom_components/tuya_local/event.py

@@ -60,5 +60,5 @@ class TuyaLocalEvent(TuyaLocalEntity, EventEntity):
             if value is not None:
             if value is not None:
                 self._trigger_event(
                 self._trigger_event(
                     value,
                     value,
-                    self.extra_state_attributes(),
+                    self.extra_state_attributes,
                 )
                 )