From a8312db1d7efed59d60c3e11f6d25bcbe22b4d9e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 11 Oct 2021 14:41:40 +0200 Subject: [PATCH] Add config flow to Stookalert (#19620) --- source/_integrations/stookalert.markdown | 26 ++++-------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/source/_integrations/stookalert.markdown b/source/_integrations/stookalert.markdown index ac83b69fb21..8e792ebe977 100644 --- a/source/_integrations/stookalert.markdown +++ b/source/_integrations/stookalert.markdown @@ -8,31 +8,13 @@ ha_release: 0.104 ha_iot_class: Cloud Polling ha_codeowners: - '@fwestenberg' + - '@frenck' ha_domain: stookalert +ha_config_flow: true ha_platforms: - binary_sensor --- -The `stookalert` sensor platform queries the [RIVM Stookalert](https://www.rivm.nl/stookalert) API for unfavorable weather conditions or poor air quality. With a Stookalert, the RIVM calls on people not to burn wood. This can prevent health problems in people in the area. +The Stookalert integration queries the [RIVM Stookalert](https://www.rivm.nl/stookalert) API for unfavorable weather conditions or poor air quality. With a Stookalert, the RIVM calls on people not to burn wood. This can prevent health problems in people in the area. -## Configuration - -To enable the platform, add the following lines to your `configuration.yaml` file: - -```yaml -binary_sensor: - - platform: stookalert - province: YOUR_NL_PROVINCE -``` - -{% configuration %} -province: - description: A province to use for the binary sensor's state. Currently only provinces in the Netherlands are supported. Valid values are `Drenthe`, `Flevoland`, `Friesland`, `Gelderland`, `Groningen`, `Limburg`, `Noord-Brabant`, `Noord-Holland`, `Overijssel`, `Utrecht`, `Zeeland` or `Zuid-Holland`. - required: true - type: string -name: - description: The sensor name to use in the frontend. - required: false - default: "Stookalert" - type: string -{% endconfiguration %} +{% include integrations/config_flow.md %}