mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
DSMR: Remove icon from sensors with gas device class (#54752)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user