[IMP] hw_drivers: Add manufacturer on IoT Devices
Add the possibility to set a manufacturer on IoT Devices. closes odoo/odoo#36748 Taskid: 2062227 Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
This commit is contained in:
@@ -128,6 +128,7 @@ class Driver(Thread, metaclass=DriverMetaClass):
|
||||
self.dev = device
|
||||
self.data = {'value': ''}
|
||||
self.gatt_device = False
|
||||
self._device_manufacturer = ''
|
||||
|
||||
@property
|
||||
def device_name(self):
|
||||
@@ -137,6 +138,10 @@ class Driver(Thread, metaclass=DriverMetaClass):
|
||||
def device_identifier(self):
|
||||
return self.dev.identifier
|
||||
|
||||
@property
|
||||
def device_manufacturer(self):
|
||||
return self._device_manufacturer
|
||||
|
||||
@property
|
||||
def device_connection(self):
|
||||
"""
|
||||
@@ -270,6 +275,7 @@ class Manager(Thread):
|
||||
devices_list[identifier] = {
|
||||
'name': iot_devices[device].device_name,
|
||||
'type': iot_devices[device].device_type,
|
||||
'manufacturer': iot_devices[device].device_manufacturer,
|
||||
'connection': iot_devices[device].device_connection,
|
||||
}
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user