mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix HomeKit Controller device class for CO Sensors (#69949)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user