From 80de18c13aa4af5a92fddf90debb70cfc8c9f65a Mon Sep 17 00:00:00 2001 From: Jacob Date: Wed, 17 Aug 2022 20:34:47 -0400 Subject: [PATCH] fix key used for model_types cache lookup --- sunspec/core/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunspec/core/device.py b/sunspec/core/device.py index cafc223..760e248 100644 --- a/sunspec/core/device.py +++ b/sunspec/core/device.py @@ -892,7 +892,7 @@ def model_type_get(model_id): global file_pathlist global model_types - model_type = model_types.get(str(model_id)) + model_type = model_types.get(model_id) if model_type is None: smdx_data = '' # create model file name