mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
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:
parent
1edf68ff68
commit
48e36a290f
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user