original_docstring: gets a dict of all the entity's current state attributes
docstring: gets a dict of all the entity's current state attributes
docstring_tokens: gets a dict of all the entity ' s current state attributes
code: def state(self, entity):
      """gets a dict of all the entity's current state attributes"""
      temp = self.get_state(entity, attribute="all")
      if not temp:
        return None
      state = temp["attributes"]
      state["state"] = temp["state"]
      return state
code_tokens: def state ( self , entity ) : temp = self . get_state ( entity , attribute = "all" ) if not temp : return None state = temp [ "attributes" ] state [ "state" ] = temp [ "state" ] return state
short_docstring: gets a dict of all the entity's current state attributes
short_docstring_tokens: gets a dict of all the entity ' s current state attributes
comment: """gets a dict of all the entity's current state attributes"""