[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:
lejeune quentin
2021-03-02 15:32:41 +00:00
parent 8bf4c194b7
commit cb4337ebc7
+1 -1
View File
@@ -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()