Fix HomeKit Controller device class for CO Sensors (#69949)

This commit is contained in:
J. Nick Koston 2022-04-12 19:50:56 -10:00 committed by GitHub
parent f6a3598070
commit ad5d7a845b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ async def test_carbon_monoxide_sensor_read_state(hass, utcnow):
state = await helper.poll_and_get_state()
assert state.state == "on"
assert state.attributes["device_class"] == BinarySensorDeviceClass.GAS
assert state.attributes["device_class"] == BinarySensorDeviceClass.CO
def create_occupancy_sensor_service(accessory):