Fix unavailable state for homekit locks and covers (#22390)

This commit is contained in:
Jc2k authored and Jason Hu committed 2019-03-25 23:40:28 -07:00
1 parent 8aef8c6bb4
commit b2ba9d07ca
2 files changed
-15

No files matched your search

@@ -64,11 +64,6 @@ class HomeKitLock(HomeKitEntity, LockDevice):
"""Return true if device is locked."""
return self._state == STATE_LOCKED
@property
def available(self):
"""Return True if entity is available."""
return self._state is not None
async def async_lock(self, **kwargs):
"""Lock the device."""
await self._set_lock_state(STATE_LOCKED)