|
@@ -77,6 +77,14 @@ class TuyaLocalEvent(TuyaLocalEntity, EventEntity):
|
|
|
value,
|
|
value,
|
|
|
)
|
|
)
|
|
|
self._last_value = value
|
|
self._last_value = value
|
|
|
|
|
+ if value not in self._attr_event_types:
|
|
|
|
|
+ _LOGGER.warning(
|
|
|
|
|
+ "%s/%s received value %s not in event types, ignoring",
|
|
|
|
|
+ self._config._device.config,
|
|
|
|
|
+ self.name or "event",
|
|
|
|
|
+ value,
|
|
|
|
|
+ )
|
|
|
|
|
+ return
|
|
|
self._trigger_event(
|
|
self._trigger_event(
|
|
|
value,
|
|
value,
|
|
|
self.extra_state_attributes,
|
|
self.extra_state_attributes,
|