Add support for SwitchBot Lock (#84673)
* Added support for SwitchBot Lock * Updated PySwitchbot to 0.32.1 * Updated .coveragerc * Removed unnecessary condition * Using library method to verify encryption key * Added config flow tests * Remove link from config flow description * Added one more test for config flow * Updated CODEOWNERS
This commit is contained in:
parent
94a02e7613
commit
599569bc53
14 changed files with 305 additions and 14 deletions
|
@ -44,6 +44,28 @@ BINARY_SENSOR_TYPES: dict[str, BinarySensorEntityDescription] = {
|
|||
name="Light",
|
||||
device_class=BinarySensorDeviceClass.LIGHT,
|
||||
),
|
||||
"door_open": BinarySensorEntityDescription(
|
||||
key="door_status",
|
||||
name="Door status",
|
||||
device_class=BinarySensorDeviceClass.DOOR,
|
||||
),
|
||||
"unclosed_alarm": BinarySensorEntityDescription(
|
||||
key="unclosed_alarm",
|
||||
name="Door unclosed alarm",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
),
|
||||
"unlocked_alarm": BinarySensorEntityDescription(
|
||||
key="unlocked_alarm",
|
||||
name="Door unlocked alarm",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
device_class=BinarySensorDeviceClass.PROBLEM,
|
||||
),
|
||||
"auto_lock_paused": BinarySensorEntityDescription(
|
||||
key="auto_lock_paused",
|
||||
name="Door auto-lock paused",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue