-
Notifications
You must be signed in to change notification settings - Fork 49
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
Refactored common curtain/tilt code to shared base class #231
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #231 +/- ##
==========================================
+ Coverage 51.38% 58.59% +7.21%
==========================================
Files 33 34 +1
Lines 1444 1495 +51
==========================================
+ Hits 742 876 +134
+ Misses 702 619 -83 ☔ View full report in Codecov by Sentry. |
Seems like a reasonable path forward |
Other than that assumed bug which I'm now almost positive about looking at |
You can probably do
|
I'll test this tomorrow |
My tilt won't be here for a few days so I can't test that, but my curtains still work fully and the is_opening/is_closing are still fine too. I'm going to consider this ready for review. Let me know how your testing goes. It should just require a version bump in HA. Technically this is a breaking change in the API since the base class for the Tilt has been changed? If someone was relying on Tilt inheriting from Curtain, this will now cause an issue. |
That's a stretch for a breaking change. Should be ok |
People are reporting it still happens with this code. I’m not spotting the issue right now. Might have to wait till my tilt arrives |
I did some adjustments. I think the blind tilt now has all the previous methods so it should work now |
Device just showed up Charging it now Will test shortly. |
Its working with the latest changes I pushed |
Thanks @dcmeglio |
This is still a WIP (haven't tested at all yet except running existing unit tests) but wanted to see if this was along the lines you were thinking before I go too far down this road.