From 4d5761ac02168ddea8b65831d3e0dc858df423c3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 6 Jun 2023 17:42:15 +0200 Subject: [PATCH] fix config get --- ereuse_devicehub/resources/device/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 4ad265ac..c3ddd11b 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -972,11 +972,11 @@ class Device(Thing): if isinstance(c, DataStorage): c.register_dlt() - if app.config('ID_FEDERATED'): + if app.config.get('ID_FEDERATED'): api.add_service( self.chid, 'DeviceHub', - app.config('ID_FEDERATED'), + app.config.get('ID_FEDERATED'), 'Inventory service', 'Inv', )