| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Let's give it a go and fix it later if need to be, it's more important to get the feature-based emeter sensors in the HA PR than whatever special handling we are going to need potentially for HS300.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes the current broken tests in #844 caused by the fixtures for HS107(US)_1.0_1.0.8.json and KP400(US)_1.0_1.0.10.json having the emeter value in the fixture but no get_realtime value. Other strips do not fail because they do not have the emeter value in the fixture and the FakeIotProtocol creates one for them.
It seems that #299 introduced the adding of Emeter in the smart strip constructor (in commit c8ad99a) and this was added after #243 which adds the Emeter in the IoDevice update() method so perhaps there is an implication to this change that I'm missing, although it seems _create_emeter_request is no longer called anywhere so maybe that was a historical reason.
N.B. The tests all pass with this PR.
Link to CI run on branch