def __init__(self, url, dim_adj, callback_value_changed, session):
        """Init the Qwikswitch class.

        url: URL for the QS class (e.g. http://localhost:8080)
        dim_adj: adjust dimmers values exponentially.
        callback_qs_to_value: set the value upon qs change
        """
        _LOGGER.debug("init %s", url)
        self._url = url.strip('/')
        self.loop = session.loop
        self._running = False
        self.devices = QSDevices(
            callback_value_changed, self.set_qs_value, dim_adj)
        self._timeout = 300
        self._types = {}
        self._aio_session = session
        self._sleep_task = None
def __init__ ( self , url , dim_adj , callback_value_changed , session ) : _LOGGER . debug ( "init %s" , url ) self . _url = url . strip ( '/' ) self . loop = session . loop self . _running = False self . devices = QSDevices ( callback_value_changed , self . set_qs_value , dim_adj ) self . _timeout = 300 self . _types = { } self . _aio_session = session self . _sleep_task = None
Init the Qwikswitch class.

        url: URL for the QS class (e.g. http://localhost:8080)
        dim_adj: adjust dimmers values exponentially.
        callback_qs_to_value: set the value upon qs change