Add physical controls lock to homekit_controller (#75993)

This commit is contained in:
Jc2k 2022-07-31 21:30:29 +01:00 committed by GitHub
parent 003ee853a3
commit 0167875789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,12 @@ SWITCH_ENTITIES: dict[str, DeclarativeSwitchEntityDescription] = {
icon="mdi:lock-open",
entity_category=EntityCategory.CONFIG,
),
CharacteristicsTypes.LOCK_PHYSICAL_CONTROLS: DeclarativeSwitchEntityDescription(
key=CharacteristicsTypes.LOCK_PHYSICAL_CONTROLS,
name="Lock Physical Controls",
icon="mdi:lock-open",
entity_category=EntityCategory.CONFIG,
),
}

View File

@ -74,6 +74,13 @@ async def test_eve_degree_setup(hass):
unit_of_measurement=ENERGY_KILO_WATT_HOUR,
state="0.28999999165535",
),
EntityTestInfo(
entity_id="switch.eve_energy_50ff_lock_physical_controls",
unique_id="homekit-AA00A0A00000-aid:1-sid:28-cid:36",
friendly_name="Eve Energy 50FF Lock Physical Controls",
entity_category=EntityCategory.CONFIG,
state="off",
),
EntityTestInfo(
entity_id="button.eve_energy_50ff_identify",
unique_id="homekit-AA00A0A00000-aid:1-sid:1-cid:3",