mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Correct naming for electrical energy meter (#68290)
This commit is contained in:
parent
ead5b3e2c0
commit
a9c383a1e5
@ -32,7 +32,7 @@ DEFAULT_TIME_BETWEEN_UPDATE = 30
|
||||
|
||||
DATA_TASK = "task"
|
||||
|
||||
DEVICE_NAME_ENERGY = "Energy Meter"
|
||||
DEVICE_NAME_ELECTRICITY = "Electricity Meter"
|
||||
DEVICE_NAME_GAS = "Gas Meter"
|
||||
|
||||
DSMR_VERSIONS = {"2.2", "4", "5", "5B", "5L", "5S", "Q3D"}
|
||||
|
@ -37,7 +37,7 @@ from .const import (
|
||||
DEFAULT_PRECISION,
|
||||
DEFAULT_RECONNECT_INTERVAL,
|
||||
DEFAULT_TIME_BETWEEN_UPDATE,
|
||||
DEVICE_NAME_ENERGY,
|
||||
DEVICE_NAME_ELECTRICITY,
|
||||
DEVICE_NAME_GAS,
|
||||
DOMAIN,
|
||||
LOGGER,
|
||||
@ -186,7 +186,7 @@ class DSMREntity(SensorEntity):
|
||||
self.telegram: dict[str, DSMRObject] = {}
|
||||
|
||||
device_serial = entry.data[CONF_SERIAL_ID]
|
||||
device_name = DEVICE_NAME_ENERGY
|
||||
device_name = DEVICE_NAME_ELECTRICITY
|
||||
if entity_description.is_gas:
|
||||
device_serial = entry.data[CONF_SERIAL_ID_GAS]
|
||||
device_name = DEVICE_NAME_GAS
|
||||
|
Loading…
x
Reference in New Issue
Block a user