Entity sensor.daily_imported_energy_cost (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement '$' which is not a valid unit for the device class ('energy') it is using; expected one of ['Wh', 'GJ', 'MWh', 'kWh', 'MJ'];
What version of Home Assistant Core has the issue?
core-2024.6.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
sensor.total_imported_energy_cost
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sensor
Source: components/sensor/__init__.py:732
integration: Sensor (documentation, issues)
First occurred: 9:47:36 AM (2 occurrences)
Last logged: 9:49:40 AM
Entity sensor.daily_imported_energy_cost (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement '$' which is not a valid unit for the device class ('energy') it is using; expected one of ['Wh', 'GJ', 'MWh', 'kWh', 'MJ']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+template%22
the sensor.daily_imported_energy_cost seems to be wrong configured - as the error message mentions "is using native unit of measurement '$' which is not a valid unit for the device class ('energy')"
The problem
Entity sensor.daily_imported_energy_cost (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement '$' which is not a valid unit for the device class ('energy') it is using; expected one of ['Wh', 'GJ', 'MWh', 'kWh', 'MJ'];
What version of Home Assistant Core has the issue?
core-2024.6.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
sensor.total_imported_energy_cost
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response