Fixed changes in revenue API endpoint. New url is /revenue/{site_id}.#44
Conversation
- Added get_site_id() method to retrieve site id from serial - Updated revenue methods - Maintained resolution=day parameter for consistency and to now expand too much Fixes #81
|
The github action for Black seems to have failed, would you mind running Black locally and re-submit and I'll merge this untested (cannot test, no longer CheckWatt user/customer) |
|
Fixed Black formatting issues. Sorry about that - coming from a C# background, I wasn't aware of Black's formatting requirements. Thanks for the guidance! |
|
This is now released in v0.2.9, please try to update ha-checkwatt to use it. "requirements": ["pycheckwatt>=0.2.8", "aiohttp>=3.9.1"],to this: "requirements": ["pycheckwatt>=0.2.9", "aiohttp>=3.9.1"], |
Now sure how I would do this, could you give guidance? Just re-installing in hacs did nothing. Can I access the manifest.json without forking ha-checkwatt? |
|
That should be possible. It'll be a hack... You can of course also fork ha-checkwatt and install your variant over the one from hacs. |
|
Seems to be working. CW has no revenue for me today or tomorrow so I have 0, but no errors in logs and all sensors load ok here. |
Fixes #81 reported in ha-checkwatt
Haven't been able to test in HA but example.py works after this change.