fix webhook update (#21048)
This commit is contained in:
1 parent
f1f3074612
commit
1faf2f49d0
3 files changed
+4
-3
No files matched your search
@@ -91,7 +91,8 @@ class MinutPointBinarySensor(MinutPointEntity, BinarySensorDevice):
|
||||
if self.device.webhook != webhook:
|
||||
return
|
||||
_type = data.get('event', {}).get('type')
|
||||
if _type not in self._events:
|
||||
_device_id = data.get('event', {}).get('device_id')
|
||||
if _type not in self._events or _device_id != self.device.device_id:
|
||||
return
|
||||
_LOGGER.debug("Recieved webhook: %s", _type)
|
||||
if _type == self._events[0]:
|
||||
|
||||
Reference in new issue
Block a user