[FIX] hw_drivers: Fix default for action on iot mapping
Some requests are sended without specific action. So we need set these call to fit to a default action who is a empty string. Pull requeste related: 63375 closes odoo/odoo#67089 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -49,7 +49,7 @@ class Driver(Thread, metaclass=DriverMetaClass):
|
||||
:param data: the `_actions` key mapped to the action method we want to call
|
||||
:type data: string
|
||||
"""
|
||||
self._actions[data['action']](data)
|
||||
self._actions[data.get('action', '')](data)
|
||||
|
||||
def disconnect(self):
|
||||
self._stopped.set()
|
||||
|
||||
Reference in New Issue
Block a user