Adjust icons with new device classes (#79348)
* Adjust icons with new device classes * Fix mysensors tests * Fix mysensors tests
This commit is contained in:
parent
52cdae254c
commit
fb7079c62c
5 changed files with 4 additions and 5 deletions
|
@ -610,7 +610,7 @@ async def test_sensor_entity_total_liters(
|
|||
assert state.attributes.get(ATTR_STATE_CLASS) == SensorStateClass.TOTAL_INCREASING
|
||||
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) == VOLUME_CUBIC_METERS
|
||||
assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.VOLUME
|
||||
assert state.attributes.get(ATTR_ICON) is None
|
||||
assert state.attributes.get(ATTR_ICON) == "mdi:gauge"
|
||||
|
||||
|
||||
async def test_sensor_entity_disabled_when_null(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue