original_docstring: Handle an incoming IoT message for cloud component.
docstring: Handle an incoming IoT message for cloud component.
docstring_tokens: Handle an incoming IoT message for cloud component .
code: def async_handle_cloud(hass, cloud, payload):
      """Handle an incoming IoT message for cloud component."""
      action = payload['action']
  
      if action == 'logout':
          yield from cloud.logout()
          _LOGGER.error("You have been logged out from Home Assistant cloud: %s",
                        payload['reason'])
      else:
          _LOGGER.warning("Received unknown cloud action: %s", action)
  
      return None
code_tokens: def async_handle_cloud ( hass , cloud , payload ) : action = payload [ 'action' ] if action == 'logout' : yield from cloud . logout ( ) _LOGGER . error ( "You have been logged out from Home Assistant cloud: %s" , payload [ 'reason' ] ) else : _LOGGER . warning ( "Received unknown cloud action: %s" , action ) return None
short_docstring: Handle an incoming IoT message for cloud component.
short_docstring_tokens: Handle an incoming IoT message for cloud component .
comment: """Handle an incoming IoT message for cloud component."""