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 support for INA226 Current/Power Monitor #801

Merged
merged 4 commits into from
Nov 6, 2019

Conversation

sergio303
Copy link
Contributor

@sergio303 sergio303 commented Oct 25, 2019

Description:

INA226 is a current shunt and power monitor with an I2C or SMBus compatible interface. The device monitors both a shunt voltage drop and bus supply voltage.

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#403

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

Copy link
Member

@OttoWinter OttoWinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! The code here looks great!

You just need to fix some things to make the lint checks happy:

First, these clang-tidy issues: https://travis-ci.org/esphome/esphome/jobs/602906706#L859
Then, these clang-format issues: https://travis-ci.org/esphome/esphome/jobs/602906706#L896 (it looks like you have empty lines with spaces)
Last, this python formatting check: https://travis-ci.org/esphome/esphome/jobs/602906698#L367

esphome/components/ina226/sensor.py Outdated Show resolved Hide resolved
@OttoWinter OttoWinter merged commit a919b01 into esphome:dev Nov 6, 2019
@lock lock bot locked and limited conversation to collaborators Nov 13, 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.

2 participants