Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Feb 2, 2023 · 1 comment

Comments

@nohn
Copy link

nohn commented Feb 2, 2023

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
Copy link
Owner

iprak commented Feb 2, 2023

Those 2 were added based on this request - #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants