Skip to content
This repository has been archived by the owner on Nov 10, 2018. It is now read-only.

Commit

Permalink
Added HA config and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Aug 31, 2018
1 parent 0bef1bc commit b8d114d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sensor.versions
# sensor.versions [![Build Status](https://travis-ci.com/custom-components/sensor.versions.svg?branch=master)](https://travis-ci.com/custom-components/sensor.versions)

A sensor platform which allows you to get the newest version number for your install method.

Expand All @@ -23,7 +23,7 @@ key | description
**installation (Optional)** | Can be 'venv', 'hassbian', 'docker', 'hassio', defaults to 'venv'
**branch (Optional)** | Can be 'stable', 'rc', 'beta', defaults to 'stable'
**name (Optional)** | Set the a custom name for the platform entity.
**image (Optional)** | Can be 'default', 'qemux86', 'qemux86-64', 'qemuarm', 'qemuarm-64', 'intel-nuc', 'raspberrypi', 'raspberrypi2', 'raspberrypi3', 'raspberrypi3-64', defaults to 'default'
**image (Optional)** | Can be 'default', 'qemux86', 'qemux86-64', 'qemuarm', 'qemuarm-64', 'intel-nuc', 'raspberrypi', 'raspberrypi2', 'raspberrypi3', 'raspberrypi3-64', 'tinker', defaults to 'default'

_rc and beta is will result in the same value._

Expand Down
15 changes: 15 additions & 0 deletions configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

## this is used by travis
homeassistant:
name: Home Assistant
latitude: 0
longitude: 0
elevation: 0
unit_system: metric
time_zone: Europe/London

sensor:
platform: versions
installation: docker
branch: beta
image: default
1 change: 1 addition & 0 deletions custom_components/sensor/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
name = config.get(CONF_NAME)
add_devices([HomeAssistantVersion(installation, branch, image, name)])


class HomeAssistantVersion(Entity):
"""Representation of a Sensor."""

Expand Down

0 comments on commit b8d114d

Please sign in to comment.