def stop_xiaomi(event):
    'Stop Xiaomi Socket.'
    _LOGGER.info('Shutting down Xiaomi Hub')
    xiaomi.stop_listen()
Stop Xiaomi Socket.
def stop_xiaomi(event):
    
    _LOGGER.info('Shutting down Xiaomi Hub')
    xiaomi.stop_listen()