mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 17:57:14 +00:00
Update coinmarketcap configuration to use currency_id instead of currency (#5422)
This commit is contained in:
parent
9293fb5b38
commit
cf0f034acc
@ -25,17 +25,22 @@ sensor:
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
currency:
|
currency_id:
|
||||||
description: The cryptocurrency to use.
|
description: The ID of the cryptocurrency to use, default is the ID of Bitcoin.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: int
|
||||||
default: Bitcoin
|
default: 1
|
||||||
display_currency:
|
display_currency:
|
||||||
description: The currency to display.
|
description: The currency to display.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: USD
|
default: USD
|
||||||
|
display_currency_decimals:
|
||||||
|
description: The amount of decimals to round to.
|
||||||
|
required: false
|
||||||
|
type: int
|
||||||
|
default: 2
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
All supported currencies can be found [here](https://coinmarketcap.com/api/).
|
All supported currencies can be found [here](https://coinmarketcap.com/api/), a list of currency IDs can be found [here](https://api.coinmarketcap.com/v2/ticker/).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user