code: def is_closed(self) -> Optional[bool]:
          
          if self._device_type is not None and self._device_type == DeviceType.DoorMagnet:
              return bool(self._current_status & 0x01)
          return None
docs: For Magnet Sensor; True if Closed, False if Open.