def update(self):
        """Update state in HA."""
        for child_name in self._children:
            child_state = self.hass.states.get(child_name)
            if child_state and child_state.state not in OFF_STATES:
                self._child_state = child_state
                return
        self._child_state = None
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/universal.py/UniversalMediaPlayer.update/original