Add support for window device class to google assistant (#89564)

This commit is contained in:
Barry Loong 2023-03-13 10:45:25 +08:00 committed by GitHub
parent b9ac6b4a7c
commit 877efc993b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -161,6 +161,7 @@ DEVICE_CLASS_TO_GOOGLE_TYPES = {
(cover.DOMAIN, cover.CoverDeviceClass.GARAGE): TYPE_GARAGE,
(cover.DOMAIN, cover.CoverDeviceClass.GATE): TYPE_GARAGE,
(cover.DOMAIN, cover.CoverDeviceClass.SHUTTER): TYPE_SHUTTER,
(cover.DOMAIN, cover.CoverDeviceClass.WINDOW): TYPE_WINDOW,
(
humidifier.DOMAIN,
humidifier.HumidifierDeviceClass.DEHUMIDIFIER,

View file

@ -1113,6 +1113,7 @@ async def test_device_class_binary_sensor(
("awning", "action.devices.types.AWNING"),
("shutter", "action.devices.types.SHUTTER"),
("curtain", "action.devices.types.CURTAIN"),
("window", "action.devices.types.WINDOW"),
],
)
async def test_device_class_cover(