Closed kevdliu closed 6 months ago
@jason0x43 You probably have enough on your plate right now so I decided to just open a PR 🤣.
The is_open
property was actually removed on purpose because Home Assistant cover
entities don't support an is_open
property. However, you did find the issue -- the is_opening
method should be checking for DeviceState.OPENING
, not DeviceState.OPEN
or DeviceState.PARTIALLY_OPEN
.
Could you revise your PR to not add the is_open
method, and just keep the fixed return value for is_opening
?
Ah I see, thanks for the background. I've removed the is_open() method
Thanks!
In this commit https://github.com/jason0x43/hacs-hubitat/commit/dd2b4c0d6bbc9121cd8ddbc5d6916ffbe7eee1c2#diff-7e3eb469ea561d69ca0310f49362476a3b29e011f9f01ea8bb4b2d8610c614e2, the
is_open()
andis_opening()
methods got kind of mangled.is_open()
was deleted whileis_opening()
was changed to return true if the cover is open or opening. The result is that cover entities in Home Assistant reports "opening" when they are actually in the "open" state. This PR restores the original behavior.