Просмотр исходного кода

Event: include extra_state_attributes properly

extra_state_attributes is a cached_property, not a function call.

Issue #1578
Jason Rumney 2 лет назад
Родитель
Сommit
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,
                 )