Skip to content
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

Merged
merged 8 commits into from
May 26, 2018

Conversation

dmulcahey
Copy link
Contributor

Description:

Add sensor that polls electricity usage from devices such as the Samsung smart outlet

@property
def state(self):
"""Return the state of the entity."""
if self._state == None:

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:'

@fabaff fabaff changed the title zha: add electrical measurement sensor Add electrical measurement sensor to ZHA May 20, 2018
@rcloran rcloran self-requested a review May 20, 2018 23:15
Copy link
Contributor

@rcloran rcloran left a 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.

@dshokouhi
Copy link
Member

Just wanted to comment saying the code changes are working for me, thank you so much :)

@syssi
Copy link
Member

syssi commented May 22, 2018

Please debase this PR or fix the merge conflict. Thanks in advance!

@fabaff fabaff merged commit eae9726 into home-assistant:dev May 26, 2018
@balloob balloob mentioned this pull request Jun 8, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Sep 5, 2018
@dmulcahey dmulcahey deleted the dm/electrical-sensor branch December 26, 2018 12:12
@ghost ghost removed the platform: sensor.zha label Mar 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants