Add config flow to brottsplatskartan (#22475)

This commit is contained in:
G Johansson 2023-04-12 13:15:26 +02:00 committed by GitHub
parent 8921f18bee
commit a20c6c9386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,13 @@
title: Brottsplatskartan
description: Instructions on how to integrate brottsplatskartan.se into Home Assistant.
ha_category:
- Sensor
- Social
ha_release: 0.85
ha_iot_class: Cloud Polling
ha_config_flow: true
ha_codeowners:
- '@gjohansson-ST'
ha_domain: brottsplatskartan
ha_platforms:
- sensor
@ -13,36 +17,7 @@ ha_integration_type: integration
The `brottsplatskartan` sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to [Brottsplatskartan](https://brottsplatskartan.se). The sensor only counts incidents from the current day.
## Configuration
To enable this sensor, add the following lines to your `configuration.yaml`.
```yaml
sensor:
- platform: brottsplatskartan
```
{% configuration %}
name:
description: Custom name for the sensor.
required: false
type: string
default: Brottsplatskartan
area:
description: Area for sensor to monitor
required: false
type: string
latitude:
description: Latitude for sensor.
required: false
type: float
default: Your home zone latitude defined in your configuration.
longitude:
description: Longitude for sensor.
required: false
type: float
default: Your home zone longitude defined in your configuration.
{% endconfiguration %}
{% include integrations/config_flow.md %}
## Notes