-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Update version for smart-meter-texas to 0.4.7 #54493
Conversation
Potential fix for home-assistant#40348
Hey there @grahamwetzler, mind taking a look at this pull request as it has been labeled with an integration ( |
Thanks again @meyerrj, I just deployed v0.4.4 https://pypi.org/manage/project/smart-meter-texas/release/0.4.4/ |
No problem @grahamwetzler! Thanks for all your work on this project! |
You'll need to regenerate requirements
|
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.
Please see above
Seeing this when testing
|
Could the exception possibly be an issue with the SSL library on the client? |
I found these issues: It appears that Python's default SSL library on various platforms may be missing some CAs needed to verify some websites, It has some interesting behavior when working through Docker on Windows too. |
@bdraco Just wanted to follow up. Can you confirm that the SSL error you received wasn't an issue with your Python/SSL environment? |
I tried production and dev. Error both places |
@bdraco Everything I can find on the error points to an issue with the local certificates being out of date or incomplete... Short of making the library ignore SSL validation (which isn't recommended), I think this issue needs to be resolved in the environment somehow. @grahamwetzler Another thought may be to import the certifi module and use that ssl context... aio-libs/aiohttp#955 (comment) Thoughts? |
Is it a new intermediate certificate that isn't in the version of certifi that home assistant uses? Does upgrading to certifi 2021.5.30 include it? |
So, this definitely appears to get even more troublesome than I had anticipated... The library works with Python on Windows for me just fine, but not Linux. Updating certifi did not help, either. The only way I can currently get it to work on Linux is by setting the sslcontext.verify_mode to none, or by passing in the certificate chain file when working against smartmetertexas.com. Also, the SSL certificate chain is correct for the www.smartmetertexas.com domain, but entirely different for smartmetertexas.com. The ssllabs test returns different results too. 🤦♂️ |
Its setting up now, but the meter is showing unavailable |
I noticed that the smart meter website can have some latency with getting your meter and meter stats on first setup, and sometimes it takes a while before it actually returns result for your "current" usage. Sometimes I'm only able to query the previous day's information until late in the day. |
I started the CI. I'll recheck it in 30m and see if it becomes available |
It's working. Just took 6 minutes to do the first poll |
Hooray! Thanks for all the help in getting this resolved! I'm excited to get this working on my HA. 😁 |
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.
Should be good to go if the CI passes
If you want to add support for the energy integration in a future PR: https://developers.home-assistant.io/docs/core/entity/sensor#long-term-statistics |
Looks like there are some formatting and a pylint issue to address |
GitHub's web editor is not well suited for Python. 🤦♂️ |
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Checked manually, should be good now. Retesting... |
testing looks good 👍 |
Sorry for the trouble with this. My python is admittedly a little rusty after roughly a decade. |
CI failure is unrelated and being worked on in #55169 |
Proposed change
Update library version to fix a broken API call.
Changelog: grahamwetzler/smart-meter-texas@v0.4.0...v0.4.7
Potential fix for #40348
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: