From dec9dfd41246c219da338a35eb149621b55ed39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Mon, 16 Aug 2021 14:23:44 +0200 Subject: [PATCH] Remove alternatives from version (#18936) --- source/_integrations/version.markdown | 45 --------------------------- 1 file changed, 45 deletions(-) diff --git a/source/_integrations/version.markdown b/source/_integrations/version.markdown index 9054b9fd2a1..358aa6d26b7 100644 --- a/source/_integrations/version.markdown +++ b/source/_integrations/version.markdown @@ -54,50 +54,5 @@ source: `default`, `qemux86`, `qemux86-64`, `qemuarm`, `qemuarm-64`, `generic-x86-64`, `raspberrypi`, `raspberrypi2`, `raspberrypi3`, `raspberrypi3-64`, `raspberrypi4`, `raspberrypi4-64`, `tinker`, `odroid-c2`, `odroid-n2`, `odroid-xu` -## Alternatives for showing local version -This sensor is an alternative to the existing solutions to achieve the same -result through various platforms. -Remember that you can easily get the installed version on the command line. -```bash -hass --version -``` - -Or go to the service developer tool icon **Info** section of the **Developer Tools**. - -A [`command_line`](/integrations/sensor.command_line/) with -[`hass`](/docs/tools/hass/) to display your current version. - -```yaml -sensor: - - platform: command_line - name: Version - command: "/home/homeassistant/bin/hass --version" -``` - -It's also possible to read a file called `.HA_VERSION` which is located in your -Home Assistant [configuration](/docs/configuration/) folder. - -```yaml -sensor: - - platform: command_line - name: Version - command: "cat /home/homeassistant/.homeassistant/.HA_VERSION" -``` - -You might think that a [`rest` sensor](/integrations/rest) could work, -too, -but it will not as Home Assistant is not ready when the sensor gets initialized. - -{% raw %} - -```yaml -sensor: - - platform: rest - resource: http://IP_ADDRESS:8123/api/config - name: Current Version - value_template: "{{ value_json.version }}" -``` - -{% endraw %}