Christopher Fenner
Christopher Fenner
just drop in the comment, critical data is removed already.
Everything looks good. Can you try to remove the type `gas` from the integration config and set to `auto`? Reconfigure the integration or change it in the `config/.storage/core.config_entries.json` and restart.
@MarianRychtecky can you [join the Discord](https://github.com/somm15/PyViCare?tab=readme-ov-file#help) to have a chat?
https://discord.gg/gjf5ur6u, my username is Hafenstrand.
@MarianRychtecky could you verify if the issue is solved with the latest beta release?
Oh, just found it... the getter for the unit is not implemented correctly (looks like copy&paste issue). https://github.com/somm15/PyViCare/blob/4e3bbdc66d78e33571db8cf350f78c6486097006/PyViCare/PyViCareGazBoiler.py#L183 Is tries to access the value with `"heating.gas.consumption.summary.dhw")["properties"]["day"]["unit"]` but it should be...
@MarianRychtecky can you please verify the PR https://github.com/home-assistant/core/pull/123089 and comment on it? With this you should be able to set the device class permanently.
There is actually code in place, that should prevent https://github.com/home-assistant/core/issues/122850, but `device_class` is still reset on `update`. https://github.com/home-assistant/core/blob/8687c32c15fb3a577a993a2e32c0527ed36f838b/homeassistant/components/vicare/sensor.py#L981-L988
> Does removing the getter mean the sensor won't be automatically populated in HA from API? No, the getter for the sensor value is still there, it's would just be...
You will need to wait till next week, it is in the monthly release.