def notify_callback(self, notify):
_LOGGER.debug(notify)<EOL>if notify.ip_address != self.stb_ip:<EOL><INDENT>return<EOL><DEDENT>if notify.tune:<EOL><INDENT>self._state = State.PLAYING_LIVE_TV <EOL>self.tune_src = notify.tune['<STR_LIT>']<EOL>try:<EOL><INDENT>if notify.stopped:<EOL><INDENT>self._state = State.STOPPED<EOL><DEDENT>elif notify.timeshift:<EOL><INDENT>self._state = State.PLAYING_TIMESHIFT_TV<EOL><DEDENT>elif notify.recorded:<EOL><INDENT>self._state = State.PLAYING_RECORDED_TV<EOL><DEDENT><DEDENT>except PyMediaroomError as e:<EOL><INDENT>_LOGGER.debug("<STR_LIT>", e)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._state = State.STANDBY<EOL><DEDENT>_LOGGER.debug("<STR_LIT>", self.stb_ip, self._state)<EOL>return self._state<EOL>
Process State from NOTIFY message.