Fix missing device class on Velux Windows (#100863)

This commit is contained in:
Jc2k 2023-09-25 17:03:11 +01:00 committed by GitHub
parent 002be37257
commit 014fb61743
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -299,8 +299,14 @@ class HomeKitWindowCover(HomeKitEntity, CoverEntity):
return {"obstruction-detected": obstruction_detected}
class HomeKitWindow(HomeKitWindowCover):
"""Representation of a HomeKit Window."""
_attr_device_class = CoverDeviceClass.WINDOW
ENTITY_TYPES = {
ServicesTypes.GARAGE_DOOR_OPENER: HomeKitGarageDoorCover,
ServicesTypes.WINDOW_COVERING: HomeKitWindowCover,
ServicesTypes.WINDOW: HomeKitWindowCover,
ServicesTypes.WINDOW: HomeKitWindow,
}