コード例 #1
0
 def _get_door(self) -> AbstractDoor:
     door = get_door_by_id(self._door.door_id, self.coordinator.data)
     self._door = door or self._door
     return self._door
コード例 #2
0
 def door(self) -> AbstractDoor:
     """Return the door object."""
     door = get_door_by_id(self._door.door_id, self.coordinator.data)
     self._door = door or self._door
     return self._door