DSMR: Remove icon from sensors with gas device class (#54752)
parent
013b998974
commit
9dab920d01
|
@ -251,7 +251,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||
dsmr_versions={"4", "5", "5L"},
|
||||
is_gas=True,
|
||||
force_update=True,
|
||||
icon="mdi:fire",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||
),
|
||||
|
@ -261,7 +260,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||
dsmr_versions={"5B"},
|
||||
is_gas=True,
|
||||
force_update=True,
|
||||
icon="mdi:fire",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||
),
|
||||
|
@ -271,7 +269,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||
dsmr_versions={"2.2"},
|
||||
is_gas=True,
|
||||
force_update=True,
|
||||
icon="mdi:fire",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||
),
|
||||
|
|
|
@ -167,7 +167,6 @@ async def test_default_setup(hass, dsmr_connection_fixture):
|
|||
gas_consumption = hass.states.get("sensor.gas_consumption")
|
||||
assert gas_consumption.state == "745.695"
|
||||
assert gas_consumption.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_GAS
|
||||
assert gas_consumption.attributes.get(ATTR_ICON) == "mdi:fire"
|
||||
assert gas_consumption.attributes.get(ATTR_LAST_RESET) is None
|
||||
assert (
|
||||
gas_consumption.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_TOTAL_INCREASING
|
||||
|
@ -269,7 +268,6 @@ async def test_v4_meter(hass, dsmr_connection_fixture):
|
|||
assert gas_consumption.state == "745.695"
|
||||
assert gas_consumption.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_GAS
|
||||
assert gas_consumption.attributes.get("unit_of_measurement") == VOLUME_CUBIC_METERS
|
||||
assert gas_consumption.attributes.get(ATTR_ICON) == "mdi:fire"
|
||||
assert gas_consumption.attributes.get(ATTR_LAST_RESET) is None
|
||||
assert (
|
||||
gas_consumption.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_TOTAL_INCREASING
|
||||
|
@ -341,7 +339,6 @@ async def test_v5_meter(hass, dsmr_connection_fixture):
|
|||
gas_consumption = hass.states.get("sensor.gas_consumption")
|
||||
assert gas_consumption.state == "745.695"
|
||||
assert gas_consumption.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_GAS
|
||||
assert gas_consumption.attributes.get(ATTR_ICON) == "mdi:fire"
|
||||
assert gas_consumption.attributes.get(ATTR_LAST_RESET) is None
|
||||
assert (
|
||||
gas_consumption.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_TOTAL_INCREASING
|
||||
|
@ -424,7 +421,6 @@ async def test_luxembourg_meter(hass, dsmr_connection_fixture):
|
|||
gas_consumption = hass.states.get("sensor.gas_consumption")
|
||||
assert gas_consumption.state == "745.695"
|
||||
assert gas_consumption.attributes.get(ATTR_DEVICE_CLASS) == DEVICE_CLASS_GAS
|
||||
assert gas_consumption.attributes.get(ATTR_ICON) == "mdi:fire"
|
||||
assert gas_consumption.attributes.get(ATTR_LAST_RESET) is None
|
||||
assert (
|
||||
gas_consumption.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_TOTAL_INCREASING
|
||||
|
@ -496,7 +492,6 @@ async def test_belgian_meter(hass, dsmr_connection_fixture):
|
|||
gas_consumption = hass.states.get("sensor.gas_consumption")
|
||||
assert gas_consumption.state == "745.695"
|
||||
assert gas_consumption.attributes.get(ATTR_DEVICE_CLASS) is DEVICE_CLASS_GAS
|
||||
assert gas_consumption.attributes.get(ATTR_ICON) == "mdi:fire"
|
||||
assert gas_consumption.attributes.get(ATTR_LAST_RESET) is None
|
||||
assert (
|
||||
gas_consumption.attributes.get(ATTR_STATE_CLASS) == STATE_CLASS_TOTAL_INCREASING
|
||||
|
|
Loading…
Reference in New Issue