From a122753e344e7c1a2f006fc1b55d99931d9eaa89 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 12 Nov 2020 20:58:38 +0100 Subject: [PATCH] when add or remove components check again the hid --- ereuse_devicehub/resources/action/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index a0d38e14..f1a6f182 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -1510,6 +1510,9 @@ def update_components_action_one(target: ActionWithOneDevice, device: Device, __ target.components.clear() if isinstance(device, Computer): target.components |= device.components + else: + if isinstance(device, Computer): + device.add_mac_to_hid() @event.listens_for(ActionWithMultipleDevices.devices, Events.init_collection.__name__,