fix config get

This commit is contained in:
Cayo Puigdefabregas 2023-06-06 17:42:15 +02:00
parent 66e162db4d
commit 4d5761ac02
1 changed files with 2 additions and 2 deletions

View File

@ -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',
)