@asyncio.coroutine<EOL><INDENT>def set_volume(self, percent, update_group=True):<DEDENT>
if percent not in range(<NUM_LIT:0>, <NUM_LIT>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>new_volume = self._client['<STR_LIT>']['<STR_LIT>']<EOL>new_volume['<STR_LIT>'] = percent<EOL>self._client['<STR_LIT>']['<STR_LIT>']['<STR_LIT>'] = percent<EOL>yield from self._server.client_volume(self.identifier, new_volume)<EOL>if update_group:<EOL><INDENT>self._server.group(self.group.identifier).callback()<EOL><DEDENT>_LOGGER.info('<STR_LIT>', percent, self.friendly_name)<EOL>
Set client volume percent.