Exemplo n.º 1
0
def unload():
    thread_pool.remove_callable(thread_run)
    if P.serial is not None and P.serial.isOpen():
        P.serial.close()
    P.initialised = False
    dispatcher.disconnect(_init_recovery,
                          signal=Constant.SIGNAL_USB_DEVICE_CHANGE)
Exemplo n.º 2
0
def unload():
    from main import thread_pool
    L.l.info('Transport unloading')
    # ...
    thread_pool.remove_callable(thread_run)
    global initialised
    initialised = False
Exemplo n.º 3
0
def unload():
    thread_pool.remove_callable(thread_run)
    for func in P.func_list:
        thread_pool.remove_callable(func)
    # for ow in P.ow_conn_list:
    #    P.ow_conn_list[ow].close_connection()
    P.initialised = False
Exemplo n.º 4
0
def unload():
    L.l.info('Unloading RFXCom')
    thread_pool.remove_callable(thread_run)
    if P.initialised:
        P.transport.close()
    P.initialised = False
    dispatcher.disconnect(_init_recovery,
                          signal=Constant.SIGNAL_USB_DEVICE_CHANGE)
Exemplo n.º 5
0
def unload():
    L.l.info('Heat module unloading')
    global initialised
    initialised = False
    thread_pool.remove_callable(heat_loop.thread_run)
    dispatcher.disconnect(handle_event_heat,
                          signal=Constant.SIGNAL_HEAT,
                          sender=dispatcher.Any)
Exemplo n.º 6
0
def unload():
    global _pooler
    thread_pool.remove_callable(_pooler.poll)
    try:
        for fauxmo in _FAUXMOS:
            L.l.info('Closing socket {}'.format(fauxmo.socket))
            fauxmo.socket.close()
    except Exception as ex:
        L.l.warning('Unable to close socked {}'.format(ex))
Exemplo n.º 7
0
def unload():
    L.l.info('Dashcam module unloading')
    # ...
    thread_pool.remove_callable(recorder.thread_run)
    thread_pool.remove_callable(thread_run)
    thread_pool.remove_callable(accel.thread_run)
    recorder.unload()
    gps.unload()
    accel.unload()
    global initialised
    initialised = False
Exemplo n.º 8
0
def unload():
    thread_pool.remove_callable(thread_run)
    P.initialised = False
Exemplo n.º 9
0
def unload():
    L.l.info('Usb module unloading')
    thread_pool.remove_callable(thread_run)
    P.initialised = False
Exemplo n.º 10
0
def unload():
    thread_pool.remove_callable(thread_run)
    if P.serial is not None and P.serial.isOpen():
        P.serial.close()
    P.initialised = False
Exemplo n.º 11
0
def unload():
    # ...
    thread_pool.remove_callable(thread_run)
    global initialised
    initialised = False
Exemplo n.º 12
0
def unload():
    global initialised
    initialised = False
    thread_pool.remove_callable(health_monitor_loop.thread_run)
Exemplo n.º 13
0
def unload():
    L.l.info("Unloading zwave")
    if P.network is not None:
        P.network.stop()
    thread_pool.remove_callable(thread_run)
    P.initialised = False
Exemplo n.º 14
0
def unload():
    thread_pool.remove_callable(thread_run)
Exemplo n.º 15
0
def unload():
    L.l.info('Presence module unloading')
    # ...
    thread_pool.remove_callable(presence_bt.thread_run)
    global initialised
    initialised = False
Exemplo n.º 16
0
def unload():
    global initialised
    thread_pool.remove_callable(graph_plotly_run.thread_run)
    initialised = False
Exemplo n.º 17
0
def unload():
    global _pooler
    thread_pool.remove_callable(_pooler.poll)
Exemplo n.º 18
0
def unload():
    L.l.info('Atrea Ventilation module unloading')
    thread_pool.remove_callable(thread_run)
    P.initialised = False
Exemplo n.º 19
0
def unload():
    L.l.info('DDNS module unloading')
    thread_pool.remove_callable(ddns_run.thread_run)
    P.initialised = False