From a176de6d4bd73ccbff5c6e11a1ead3e1cb3393d0 Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Thu, 12 Jan 2023 08:42:40 +0100 Subject: [PATCH] Add RPC smoke binary sensor to Shelly integration (#85697) * Add RPS smoke binary sensor * Remove index * Remove the unnecessary attribute --- homeassistant/components/shelly/binary_sensor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/shelly/binary_sensor.py b/homeassistant/components/shelly/binary_sensor.py index a5265241da3..99f8373ad3b 100644 --- a/homeassistant/components/shelly/binary_sensor.py +++ b/homeassistant/components/shelly/binary_sensor.py @@ -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, + ), }