heyajohnny / cryptoinfo

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

Common device_class #23

Closed pawelhulek closed 2 years ago

pawelhulek commented 2 years ago

Would you mind adding a common device class for entities to make it easier to group them with other financial entities? I would propose to add to your entity. self._attr_device_class = SensorDeviceClass.MONETARY ALso i think that self._unit_of_measurement should probably be currency_name

heyajohnny commented 2 years ago

I've just pushed an update with the device_class 'monetary'