Add onewire support for DS2413 (#55921)

This commit is contained in:
Steffen Ronalter 2021-10-15 08:23:26 +02:00 committed by GitHub
parent 12b6922875
commit 49b07224bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 0 deletions

View file

@ -57,6 +57,15 @@ DEVICE_BINARY_SENSORS: dict[str, tuple[OneWireBinarySensorEntityDescription, ...
)
for id in DEVICE_KEYS_0_7
),
"3A": tuple(
OneWireBinarySensorEntityDescription(
key=f"sensed.{id}",
entity_registry_enabled_default=False,
name=f"Sensed {id}",
read_mode=READ_MODE_BOOL,
)
for id in DEVICE_KEYS_A_B
),
}