-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pylint changes #327
Pylint changes #327
Conversation
Signed-off-by: Scott Rushworth <[email protected]>
I've reviewed an already merged PR. I'm not sure that you will be notified and aware about my question above @openhab-5iver |
Unfortunately, I do not see any comment or review. They do show up after merge. What was your question? |
@openhab-5iver ,
In Core/automation/lib/python/core/utils.py I'm getting a lot of warnings in my log. What is the reason for the pending deprecation? |
value | ||
|
||
Returns: | ||
int, float, ON, OFF, OPEN, CLOSED, str, DateTime, or None: the state if | ||
the Item converted to the type of default value, or the default | ||
value if the Item's state is NULL or UNDEF | ||
""" | ||
LOG.warn("The 'core.utils.getItemValue' function is pending deprecation.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting a lot of warnings in my log. What is the reason for the pending deprecation?
I'm not sure if you get notifications for this @openhab-5iver due to that it's closed so I post this and mention you. (Sorry if I spammed you) |
Hey @besynnerlig! No worries... I've just been busy with other things! I marked several of these functions deprecated because I'd like to remove them. I had mentioned this when they were first included, but I probably should have said something to you before merging this. My reasoning is that I am preparing to recreate the helper libraries in the rule engine and this library will be the first to go. Most of these functions I think would be better documented as an example or in 'But How Do I?'. Specifically...
|
However the kw function was changed in such a way that the for loop now alters the argument hence renders wrong results. I'm not sure if I need to report that as a new issue or if it's enough to mention it here. The problem is that the function argument name |
Oh my... fixed (#346)! |
Signed-off-by: Scott Rushworth [email protected]