forked from home-assistant/core
Fix Shelly button filter empty event (#57427)
This commit is contained in:
committed by
Paulus Schoutsen
parent
7ed50bb9e6
commit
c01549999a
@@ -275,7 +275,7 @@ class BlockDeviceWrapper(update_coordinator.DataUpdateCoordinator):
|
||||
if block.type != "device":
|
||||
continue
|
||||
|
||||
if block.wakeupEvent[0] == "button":
|
||||
if len(block.wakeupEvent) == 1 and block.wakeupEvent[0] == "button":
|
||||
self._last_input_events_count[1] = -1
|
||||
|
||||
break
|
||||
|
Reference in New Issue
Block a user