From 94d9ea340ebdbb16e1cacb0757f948ca407c9e81 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Mon, 8 Aug 2022 17:00:40 +0200 Subject: [PATCH] Add config flow to Open Exchange Rates (#23693) Co-authored-by: Franck Nijhof --- .../_integrations/openexchangerates.markdown | 34 ++----------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/source/_integrations/openexchangerates.markdown b/source/_integrations/openexchangerates.markdown index 7a095e28eaf..96552e45f60 100644 --- a/source/_integrations/openexchangerates.markdown +++ b/source/_integrations/openexchangerates.markdown @@ -4,6 +4,7 @@ description: Instructions on how to integrate exchange rates from https://openex ha_category: - Finance ha_iot_class: Cloud Polling +ha_config_flow: true ha_release: 0.23 ha_domain: openexchangerates ha_platforms: @@ -11,37 +12,8 @@ ha_platforms: ha_integration_type: integration --- -The `openexchangerates` sensor will show you the current exchange rate from [Open Exchange Rates](https://openexchangerates.org) that provides realtime exchange rates for [170 currencies](https://openexchangerates.org/currencies). The free account is limited to only USD as a base currency, allows 1000 requests per month, and updates every hour. +The Open Exchange Rates integration will show you the current exchange rate from [Open Exchange Rates](https://openexchangerates.org) that provides real-time exchange rates for [170 currencies](https://openexchangerates.org/currencies). The free account is limited to only USD as a base currency, allows 1000 requests per month, and updates every hour. Obtain your API key [here](https://openexchangerates.org/signup) -To enable this sensor, add the following lines to your `configuration.yaml` file: - -```yaml -# Example configuration.yaml entry -sensor: - - platform: openexchangerates - api_key: YOUR_API_KEY - quote: EUR -``` - -{% configuration %} -name: - description: The name of the sensor. - required: false - type: string - default: Exchange Rate Sensor -api_key: - description: "The API Key for [Open Exchange Rates](https://openexchangerates.org)." - required: true - type: string -quote: - description: The symbol of the quote or target currency. - required: true - type: string -base: - description: The symbol of the base currency. Note that, changing the API `base` currency is not part of the freemium API plan. - required: false - type: string - default: USD -{% endconfiguration %} +{% include integrations/config_flow.md %}