original_docstring: Return whether the entity is available.
docstring: Return whether the entity is available.
docstring_tokens: Return whether the entity is available .
code: def available(self):
          """Return whether the entity is available."""
          # We can easily detect if the V3 system is offline, but no simple check exists
          # for the V2 system. Therefore, we mark the entity as available if:
          #   1. We can verify that the system is online (assuming True if we can't)
          #   2. We can verify that the entity is online
          system_offline = self._system.version == 3 and self._system.offline
          return not system_offline and self._online
code_tokens: def available ( self ) : system_offline = self . _system . version == 3 and self . _system . offline return not system_offline and self . _online
short_docstring: Return whether the entity is available.
short_docstring_tokens: Return whether the entity is available .
comment: """Return whether the entity is available."""$SEP$# We can easily detect if the V3 system is offline, but no simple check exists$SEP$# for the V2 system. Therefore, we mark the entity as available if:$SEP$#   1. We can verify that the system is online (assuming True if we can't)$SEP$#   2. We can verify that the entity is online