mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove invalid device class in gios (#85611)
This commit is contained in:
parent
caa8fc4d10
commit
6e3cf896f7
@ -59,7 +59,6 @@ SENSOR_TYPES: tuple[GiosSensorEntityDescription, ...] = (
|
|||||||
GiosSensorEntityDescription(
|
GiosSensorEntityDescription(
|
||||||
key=ATTR_AQI,
|
key=ATTR_AQI,
|
||||||
name="AQI",
|
name="AQI",
|
||||||
device_class=SensorDeviceClass.AQI,
|
|
||||||
value=None,
|
value=None,
|
||||||
),
|
),
|
||||||
GiosSensorEntityDescription(
|
GiosSensorEntityDescription(
|
||||||
|
@ -162,7 +162,6 @@ async def test_sensor(hass):
|
|||||||
assert state.state == "dobry"
|
assert state.state == "dobry"
|
||||||
assert state.attributes.get(ATTR_ATTRIBUTION) == ATTRIBUTION
|
assert state.attributes.get(ATTR_ATTRIBUTION) == ATTRIBUTION
|
||||||
assert state.attributes.get(ATTR_STATION) == "Test Name 1"
|
assert state.attributes.get(ATTR_STATION) == "Test Name 1"
|
||||||
assert state.attributes.get(ATTR_DEVICE_CLASS) == SensorDeviceClass.AQI
|
|
||||||
assert state.attributes.get(ATTR_STATE_CLASS) is None
|
assert state.attributes.get(ATTR_STATE_CLASS) is None
|
||||||
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) is None
|
assert state.attributes.get(ATTR_UNIT_OF_MEASUREMENT) is None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user