mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Fix Shelly button filter empty event (#57427)
This commit is contained in:
@@ -295,7 +295,7 @@ class BlockDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
|||||||
if block.type != "device":
|
if block.type != "device":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if block.wakeupEvent[0] == "button":
|
if len(block.wakeupEvent) == 1 and block.wakeupEvent[0] == "button":
|
||||||
self._last_input_events_count[1] = -1
|
self._last_input_events_count[1] = -1
|
||||||
|
|
||||||
break
|
break
|
||||||
|
Reference in New Issue
Block a user