Skip to content

Commit

Permalink
Merge pull request #1378 from NullScope/master
Browse files Browse the repository at this point in the history
Fix T5 sensor triggering on local ping
  • Loading branch information
AlexxIT authored Apr 8, 2024
2 parents 61aaad4 + 48b6276 commit f88818c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonoff/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class XT5Action(XEventSesor):
uid = "action"

def set_state(self, params: dict):
if params.get("triggerType") == 2:
if "switches" in params and params.get("triggerType") == 2:
self._attr_native_value = "touch"
asyncio.create_task(self.clear_state())

Expand Down

0 comments on commit f88818c

Please sign in to comment.