def _collect_state(self) -> None:
    if (self._collect and (_RENDER_INFO in self._hass.data)):
        self._hass.data[_RENDER_INFO].entities.add(self._state.entity_id)
def _collect_state(self) -> None:
    if (self._collect and (_RENDER_INFO in self._hass.data)):
        self._hass.data[_RENDER_INFO].entities.add(self._state.entity_id)