from .config import Config
from .interface import Interface
from .devices import Devices
from .scenes import Scenes

class PyVLX:

    def __init__(self, path=None, host=None, password=None):
        self.config = Config(path, host, password)
        self.interface = Interface(self.config)
        self.devices = Devices(self)
        self.scenes = Scenes(self)


    async def connect(self):
        await self.interface.refresh_token()


    async def disconnect(self):
        await self.interface.disconnect()


    async def load_devices(self):
        await self.devices.load()


    async def load_scenes(self):
        await self.scenes.load()
