HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
233 stars 35 forks source link

Gas wrong Device class in HA 2022.11.1 #264

Closed ColinRobbins closed 1 year ago

ColinRobbins commented 1 year ago

Describe the bug HA 2022.11 introduced a breaking change. Gas sensors need to be DEVICE_CLASS_GAS rather than DEVICE_CLASS_ENERGY Otherwise they will not be available to the Energy integration.

ColinRobbins commented 1 year ago

Testing a fix...

HandyHat commented 1 year ago

The documentation (https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes) still indicates that if your sensor is in kWh, the device class should be energy, so I don't think this is the solution.

It looks like this is a bug in Home Assistant Core - https://github.com/home-assistant/core/issues/81496

ColinRobbins commented 1 year ago

Closed, see https://github.com/HandyHat/ha-hildebrandglow-dcc/issues/266