iprak / yahoofinance

Home Assistant component which allows you to get stock updates from Yahoo finance.
MIT License
81 stars 11 forks source link

Entity sensor.yahoofinance_xyz (<class 'custom_components.yahoofinance.sensor.YahooFinanceSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using #87

Closed nohn closed 1 year ago

nohn commented 1 year ago

Since update to home assistant 2023.02 these warnings are emitted on startup:

WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.yahoofinance_xxxx (<class 'custom_components.yahoofinance.sensor.YahooFinanceSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
iprak commented 1 year ago

Those 2 were added based on this request - https://github.com/iprak/yahoofinance/issues/78. I don't think monetary adds much value so I will remove that, there is no other more suitable device class. We do want to keep measurement around.