Closed crkochan closed 3 years ago
Set PR as draft until I test this in a local Home Assistant install.
In console testing in PyCharm, I'm getting valid sensor objects, so I think I've got something ready to go now.
@kbickar I'm done with changes at this point. I've got the component in Home Assistant updated to expose the new sensor objects, but I'm waiting on opening a PR there until there's a new library version available in PyPi.
What are next steps?
Sounds good, I'll take a look at it tomorrow and then release the updated library
New release is out -thanks for the PR!
In order to expose additional information to be used with the new Home Assistant Energy dashboard, the following changes were made.
Refactored get_trend() to handle more than two keys from self._trend_data.
Converted existing True/False parameters on self.get_trend() calls to explicit key names.
Added new properties exposing existing information already in self._trend_data for daily scale and above.
Also chomped some whitespace, because why not.