Adjust icons with new device classes (#79348)

* Adjust icons with new device classes

* Fix mysensors tests

* Fix mysensors tests
This commit is contained in:
epenet 2022-09-30 10:41:18 +02:00 committed by GitHub
parent 52cdae254c
commit fb7079c62c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 5 deletions

View file

@ -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(