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

@ -67,8 +67,11 @@ DISCOVERY_SCHEMAS = [
),
entity_class=MatterSwitch,
required_attributes=(clusters.OnOff.Attributes.OnOff,),
# restrict device type to prevent discovery by light
# platform which also uses OnOff cluster
not_device_type=(device_types.OnOffLight, device_types.DimmableLight),
# restrict device type to prevent discovery by the wrong platform
not_device_type=(
device_types.OnOffLight,
device_types.DimmableLight,
device_types.DoorLock,
),
),
]