Add support for homekit garage obstruction sensors (#42243)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-23 12:18:02 -05:00
1 parent 88231aa541
commit 4bf9ce6fca
5 files changed
+139 -7

No files matched your search

@@ -116,9 +116,7 @@ class HomeKitGarageDoorCover(HomeKitEntity, CoverEntity):
obstruction_detected = self.service.value(
CharacteristicsTypes.OBSTRUCTION_DETECTED
)
if not obstruction_detected:
return {}
return {"obstruction-detected": obstruction_detected}
return {"obstruction-detected": obstruction_detected is True}
class HomeKitWindowCover(HomeKitEntity, CoverEntity):