A sensor platform which allows you to get the newest version number for your install method.
To get started put /custom_components/sensor/versions.py here:
<config directory>/custom_components/sensor/versions.py
Example configuration.yaml:
sensor:
platform: versions
installation: docker
branch: beta
image: defaultConfiguration variables:
| key | description |
|---|---|
| platform (Required) | The sensor platform name. |
| installation (Optional) | Can be 'venv', 'hassbian', 'docker', 'hassio', defaults to 'venv' |
| branch (Optional) | Can be 'stable', 'rc', 'beta', defaults to 'stable' |
| image (Optional) | See image list for possible values, defaults to 'default' |
| image (Optional) | Can be 'default', 'qemux86', 'qemux86-64', 'qemuarm', 'qemuarm-64', 'intel-nuc', 'raspberrypi', 'raspberrypi2', 'raspberrypi3', 'raspberrypi3-64', defaults to 'default' |
Due to how custom_componentes are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.
