def add_data(self, rawdata):
for data in rawdata:<EOL><INDENT>try:<EOL><INDENT>item = data[<NUM_LIT:0>]<EOL>if item[<NUM_LIT:0>] == <NUM_LIT:2>:<EOL><INDENT>continue<EOL><DEDENT>if item[<NUM_LIT:0>] != <NUM_LIT:0>:<EOL><INDENT>warnings.warn(f"<STR_LIT>", Warning)<EOL>continue<EOL><DEDENT>item = item[<NUM_LIT:1>]<EOL>target = str(item[<NUM_LIT:0>])<EOL>try:<EOL><INDENT>data = item[<NUM_LIT:1>]<EOL><DEDENT>except IndexError:<EOL><INDENT>data = dict()<EOL><DEDENT>try:<EOL><INDENT>method = getattr(self, self.__head + target)<EOL>method(data)<EOL><DEDENT>except AttributeError:<EOL><INDENT>self._handle_unhandled(target, data)<EOL><DEDENT><DEDENT>except IndexError:<EOL><INDENT>LOGGER.warning("<STR_LIT>", data)<EOL><DEDENT><DEDENT>self.conn.process_queues()<EOL>
Add data to given room's state