Преглед изворни кода

Event: include extra_state_attributes properly

extra_state_attributes is a cached_property, not a function call.

Issue #1578
Jason Rumney пре 2 година
родитељ
комит
ddd3db7f48
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      custom_components/tuya_local/event.py

+ 1 - 1
custom_components/tuya_local/event.py

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