Add RPC smoke binary sensor to Shelly integration (#85697)

* Add RPS smoke binary sensor

* Remove index

* Remove the unnecessary attribute
This commit is contained in:
Maciej Bieniek 2023-01-12 08:42:40 +01:00 committed by GitHub
parent b71d332a10
commit a176de6d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,6 +190,12 @@ RPC_SENSORS: Final = {
entity_category=EntityCategory.DIAGNOSTIC,
supported=lambda status: status.get("apower") is not None,
),
"smoke": RpcBinarySensorDescription(
key="smoke",
sub_key="alarm",
name="Smoke",
device_class=BinarySensorDeviceClass.SMOKE,
),
}