Add support for Bosch BMP280 Sensor#30837
Conversation
|
@belidzs please take a look at the pylint errors :) |
|
@springstan my bad, I thought running |
|
It looks like the build is failing because of an other component in the repo called I have fetched the latest |
There was a problem hiding this comment.
Why does this integration needs RPi.GPIO?
There was a problem hiding this comment.
adafruit-circuitpython-bmp280 depends on Adafruit-Blinka while it conditionally depends on RPi.GPIO (on arm architecture anyway)
I wasn't sure if these conditional requirements will be automatically resolved by home-assistant but a tutorial written by the library author explicitly mentioned it as a requirement so I added it to the requirements as well.
As it is commented out by gen_requirements_all.py anyways I think it can be safely removed.
|
Is there anything I need to do at this point? |
Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>
Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>
bdraco
left a comment
There was a problem hiding this comment.
This is getting close. Are the docs still accurate?
|
@bdraco not really, I have to update it due to the fact that the |
|
Fixed docs as well at #11769 |
|
@bdraco thanks for the review, I appreciate it |
MartinHjelmare
left a comment
There was a problem hiding this comment.
Mostly small things. Please address the comments in a new PR.
* Fix minor issues mentioned in #30837 after it was closed * Update homeassistant/components/bmp280/sensor.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Description:
Implement support for the Bosch BMP280 Environmental Sensor
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#11769
Example entry for
configuration.yaml(if applicable):Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest.requirements_all.txtby runningpython3 -m script.gen_requirements_all..coveragerc.If the code does not interact with devices: