瀏覽代碼

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,
                 )