original_docstring:  Returns if any or specified device is home. 
docstring: Returns if any or specified device is home.
docstring_tokens: Returns if any or specified device is home .
code: def is_on(hass, entity_id=None):
      """ Returns if any or specified device is home. """
      entity = entity_id or ENTITY_ID_ALL_DEVICES
  
      return hass.states.is_state(entity, components.STATE_HOME)
code_tokens: def is_on ( hass , entity_id = None ) : entity = entity_id or ENTITY_ID_ALL_DEVICES return hass . states . is_state ( entity , components . STATE_HOME )
short_docstring: Returns if any or specified device is home.
short_docstring_tokens: Returns if any or specified device is home .
comment: """ Returns if any or specified device is home. """