def __set_config_value(self, key, value):
        """Sets a value for a room config"""

        self.check_owner()
        params = {"room": self.room_id, "config": to_json({key: value})}
        resp = self.conn.make_api_call("setRoomConfig", params)
        if "error" in resp:
            raise RuntimeError(f"{resp['error'].get('message') or resp['error']}")
        return resp
def __set_config_value ( self , key , value ) : self . check_owner ( ) params = { "room" : self . room_id , "config" : to_json ( { key : value } ) } resp = self . conn . make_api_call ( "setRoomConfig" , params ) if "error" in resp : raise RuntimeError ( f"{resp['error'].get('message') or resp['error']}" ) return resp
Sets a value for a room config