-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Add electrical measurement sensor to ZHA #14561
Conversation
@property | ||
def state(self): | ||
"""Return the state of the entity.""" | ||
if self._state == None: |
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.
comparison to None should be 'if cond is None:'
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.
This looks good to me. #14563 will conflict with this, so waiting for checks there to complete and will land and then fix up here.
Just wanted to comment saying the code changes are working for me, thank you so much :) |
Please debase this PR or fix the merge conflict. Thanks in advance! |
96ad0df
to
938cc81
Compare
* add IlluminanceMeasurementSensor * address review comment * Fix whitespace error during merge
938cc81
to
48e56a8
Compare
Description:
Add sensor that polls electricity usage from devices such as the Samsung smart outlet