#How to fix issue with missing unit (Reactive Energy)?
1 messages · Page 1 of 1 (latest)
Remove device_class: energy is probably the solution.
I'm sure that would remove the warning, but doesn't sound like a fix when the unit is valid.
But I guess the fix is to do that and then wait for the unit to be supported? Just seems odd to remove support for something without a replacement ready.
Well it's not one of the valid energy units as far as HA is concerned.
And I wouldn't really think you're 'losing support' for anything, not really any functionality is lost by it not having a device class.
That's fair, I guess no support is lost, but still feels odd to be told my sensor will stop working, when the "fix" doesn't change what I already had. But I apprecaite the help, I'll just remove the class.
Yeah I think it used to be more "anything goes", but I believe they've been tightening the restrictions a bit that device class have to have matching units. Don't quite understand the purpose, but maybe something will come of it someday.
I could imagine having proper "truths" is good for the system overall.
I would've probably just made sure to support common types before forcing people to change, but that obviously also means having to define "common". 😄
https://github.com/home-assistant/architecture/discussions/724
Just yesterday in fact. Good timing 😁