How to use the pyhaversion.get_version_number function in pyhaversion

To help you get started, we’ve selected a few pyhaversion 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 klaasnicolaas / Smarthome-homeassistant-config / custom_components / sensor / versions.py View on Github external
def update(self):
        """Update sensor value."""
        import pyhaversion
        if self._installation == 'venv' or self._installation == 'hassbian':
            source = 'pip'
        else:
            source = self._installation
        if self._branch == 'rc':
            branch = 'beta'
        else:
            branch = self._branch
        data = pyhaversion.get_version_number(source, branch, self._image)
        self._state = data['homeassistant']
        self._attributes = data

pyhaversion

Get the latest Home Assistant version from various sources.

MIT
Latest version published 5 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages