Add door lock device type to matter integration (#89277)

* Adds base code for matter lock

* Adds basic matter door lock support

* Adds matter lock fixture

* Adds tests for matter lock

* Addresses feedback

* Added logic to handle inter states of matter lock

* Addesses feedback
This commit is contained in:
Arturo 2023-03-20 18:29:33 -06:00 committed by GitHub
parent cbe85126cb
commit 5e5ace9c4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 769 additions and 5 deletions

View file

@ -372,7 +372,10 @@ DISCOVERY_SCHEMAS = [
clusters.ColorControl.Attributes.CurrentY,
clusters.ColorControl.Attributes.ColorTemperatureMireds,
),
# restrict device type to prevent discovery in switch platform
not_device_type=(device_types.OnOffPlugInUnit,),
# restrict device type to prevent discovery by the wrong platform
not_device_type=(
device_types.OnOffPlugInUnit,
device_types.DoorLock,
),
),
]