def state(self): """Returns the entity's state record. :return: A ``dict`` containing fields and metadata for the entity. """ if self._state is None: self.refresh() return self._state