How to use the wled.__version__.__version__ function in wled

To help you get started, we’ve selected a few wled examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frenck / python-wled / tests / test_wled.py View on Github external
async def response_handler(request):
        assert request.headers["User-Agent"] == f"PythonWLED/{__version__}"
        return aresponses.Response(text="TEDDYBEAR", status=200)
github frenck / python-wled / wled / wled.py View on Github external
self._session = session
        self._close_session = False

        self.base_path = base_path
        self.host = host
        self.password = password
        self.port = port
        self.socketaddr = None
        self.request_timeout = request_timeout
        self.tls = tls
        self.username = username
        self.verify_ssl = verify_ssl
        self.user_agent = user_agent

        if user_agent is None:
            self.user_agent = f"PythonWLED/{__version__}"

        if self.base_path[-1] != "/":
            self.base_path += "/"