mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
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:
@@ -190,6 +190,12 @@ RPC_SENSORS: Final = {
|
|||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
supported=lambda status: status.get("apower") is not None,
|
supported=lambda status: status.get("apower") is not None,
|
||||||
),
|
),
|
||||||
|
"smoke": RpcBinarySensorDescription(
|
||||||
|
key="smoke",
|
||||||
|
sub_key="alarm",
|
||||||
|
name="Smoke",
|
||||||
|
device_class=BinarySensorDeviceClass.SMOKE,
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user