Replies: 2 comments 9 replies
-
Need to have a further look into this. I agree it is error prone. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Will be fixed with #2573 Also added some docs for integration development instructions. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am still continuing to create custom models of multiple devices to get ready for submission to you official library.
I ran into some problem which is connected to the libraries path naming. I have a few devices of the same manufacturer where the model character case differes from most others. This is due to the integration maintainer accidentally miss-typing it. E.g
HMIP-PSM
instead ofHmIP-PSM
Powercalc did not recognize this device until I changed the path to this "wrong" way of writing it.
The path that does not work is
powercalc/profiles/eq-3/HmIP-PSM/model.json
, the one that works ispowercalc/profiles/eq-3/HMIP-PSM/model.json
.Her the
model.json
content:As you can see, even the aliases do not help to identify the device when using the upper-lower case version of the path.
If I the path is case sensitive, this will lead to unintentional problems. If the maintainer is changing the character case in the future, I am already trying to create a pull request, the device suddenly will not be discovered anymore if I am using the only-upper-case path.
Unless there is a particular reason I cannot see it is probably better to change the path-to-model identification case-insensitive. I tried to find the parts in the code but failed until now.
Beta Was this translation helpful? Give feedback.
All reactions