heyajohnny / cryptoinfo

Provides Home Assistant sensors for all cryptocurrencies supported by CoinGecko
GNU General Public License v3.0
46 stars 13 forks source link

unit_of_measurement missing. Gives wrong "graph" in hass. #2

Closed turbokongen closed 4 years ago

turbokongen commented 4 years ago

The attribute unit_of_measurement is missing from the sensor. This result in a non graph history. image currency_name should be mapped to unit_of_measurement attribute.

heyajohnny commented 4 years ago

I've just added a default unit_of_measurement of "". This should fix your graph history.

I don't want to map the currency_name to the unit_of_measurement, because I personally find it annoying/takes away too much space in the UI. You can of course change it yourself for every sensor in the 'ui-lovelace.yaml'

I hope this answers your questions. And as always, enjoy ;)

heyajohnny commented 4 years ago

I'm closing this issue