mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Update indent
This commit is contained in:
parent
d500f49d92
commit
5660e7a8f0
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: page
|
layout: page
|
||||||
title: "Reddit Sensor"
|
title: "Reddit"
|
||||||
description: "How to integrate the Reddit sensor into Home Assistant."
|
description: "How to integrate the Reddit sensor into Home Assistant."
|
||||||
date: 2018-02-21 20:00
|
date: 2018-02-21 20:00
|
||||||
sidebar: true
|
sidebar: true
|
||||||
@ -19,7 +19,7 @@ The Reddit sensor integrates data from [Reddit](https://reddit.com/) to monitor
|
|||||||
|
|
||||||
## {% linkable_title Setup %}
|
## {% linkable_title Setup %}
|
||||||
|
|
||||||
To set up this sensor, you will need to generate a `client_id` and `client_secret` for the user account you will use to connect. Follow the first steps in [this wiki](https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example).
|
To set up this sensor, you will need to generate a `client_id` and `client_secret` for the user account you will use to connect. Follow the first steps in [this Wiki page](https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example).
|
||||||
|
|
||||||
## {% linkable_title Configuration %}
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
@ -27,14 +27,15 @@ To enable this platform, add the following to your `configuration.yaml` file:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
- platform: reddit
|
sensor:
|
||||||
username: !secret reddit_username
|
- platform: reddit
|
||||||
password: !secret reddit_password
|
username: !secret reddit_username
|
||||||
client_id: !secret reddit_client_id
|
password: !secret reddit_password
|
||||||
client_secret: !secret reddit_client_secret
|
client_id: !secret reddit_client_id
|
||||||
subreddits:
|
client_secret: !secret reddit_client_secret
|
||||||
- news
|
subreddits:
|
||||||
- worldnews
|
- news
|
||||||
|
- worldnews
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -47,11 +48,11 @@ password:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
client_id:
|
client_id:
|
||||||
description: Your Reddit account client_id generated from the wiki above.
|
description: Your Reddit account client ID.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
client_secret:
|
client_secret:
|
||||||
description: Your Reddit account client_secret generated from the wiki above.
|
description: Your Reddit account client secret
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
subreddits:
|
subreddits:
|
||||||
@ -59,7 +60,7 @@ subreddits:
|
|||||||
required: true
|
required: true
|
||||||
type: list
|
type: list
|
||||||
sort_by:
|
sort_by:
|
||||||
description: Sort reddit posts by new, top, controversial, and hot.
|
description: "Sort reddit posts by `new`, `top`, `controversial` and `hot`."
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: hot
|
default: hot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user