#How to fix issue with missing unit (Reactive Energy)?

1 messages · Page 1 of 1 (latest)

timber frost
#

I'm getting the warning shown in the attached screenshot, with a message that it'll stop working soon.

What's the right way to address this issue?

The list of units on this page doesn't show Reactive Energy (varh), only Reactive Power (var).

amber sleet
#

Remove device_class: energy is probably the solution.

timber frost
#

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.

amber sleet
#

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.

timber frost
#

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.

amber sleet
#

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.

timber frost
#

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". 😄

amber sleet