#!/usr/bin/env python3
import logging
import time

from subpop.hub import Hub

hub = Hub()

import dyne.org.funtoo.powerbus as powerbus

if __name__ == "__main__":

	while True:
		idle_client = powerbus.session.FuntooIdleClient()
		hub.LOOP.run_until_complete(idle_client.start())
		logging.warning("Reconnecting soon...")
		time.sleep(2)
