Add system option for linux_battery.py, Support android. (#4504)

* Add system option for linux_battery.py, Support android.

* Use new style for configuration variables
This commit is contained in:
lich 2018-01-24 20:51:46 +08:00 committed by Fabian Affolter
parent 1edf68ff68
commit 48e36a290f

View File

@ -23,8 +23,20 @@ sensor:
- platform: linux_battery - platform: linux_battery
``` ```
Configuration variables: {% configuration %}
name:
- **name** (*Optional*): Friendly name to use for the frontend. Default to "Battery". description: Friendly name to use for the frontend.
- **battery** (*Optional*): Number of the battery. Default to `1`. required: false
default: Battery
type: string
battery:
description: Number of the battery.
required: false
default: 1
type: integer
system:
description: "The local system type. Support `linux` and `android`."
required: false
default: linux
type: string
{% endconfiguration %}