original_docstring: Return if the device is online.
docstring: Return if the device is online.
docstring_tokens: Return if the device is online .
code: def is_on(self):
          """Return if the device is online."""
          if not self._coordinator.last_update_success:
              return False
  
          # Not all devices report online so assume True if its missing
          return self._device.device_json[MYQ_DEVICE_STATE].get(
              MYQ_DEVICE_STATE_ONLINE, True
          )
code_tokens: def is_on ( self ) : if not self . _coordinator . last_update_success : return False return self . _device . device_json [ MYQ_DEVICE_STATE ] . get ( MYQ_DEVICE_STATE_ONLINE , True )
short_docstring: Return if the device is online.
short_docstring_tokens: Return if the device is online .
comment: """Return if the device is online."""$SEP$# Not all devices report online so assume True if its missing