Add config flow to Uptime (#21849)

This commit is contained in:
Franck Nijhof 2022-03-12 12:36:17 +01:00 committed by GitHub
parent e59b37b1ad
commit f7b429f6e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,33 +10,10 @@ ha_quality_scale: internal
ha_domain: uptime
ha_platforms:
- sensor
ha_config_flow: true
---
The `uptime` sensor stores the timestamp (date and time) when Home Assistant was last started.
The uptime integration provides a sensor that stores the timestamp
(date and time) when Home Assistant was last started.
## Configuration
To enable this sensor, add the following lines to your `configuration.yaml`:
```yaml
# Example configuration.yaml entry
sensor:
- platform: uptime
```
{% configuration %}
name:
description: Name to use in the frontend.
required: false
type: string
default: Uptime
{% endconfiguration %}
## Example
```yaml
# Example with configuration variables
sensor:
- platform: uptime
name: Time Online
````
{% include integrations/config_flow.md %}