From 811e1cc3e67a8276ab09f9dddf434fe316a3e1b5 Mon Sep 17 00:00:00 2001 From: Khole Date: Sun, 14 Feb 2021 10:39:31 +0000 Subject: [PATCH] Add hive hub 360 sensors (#46320) --- homeassistant/components/hive/binary_sensor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/hive/binary_sensor.py b/homeassistant/components/hive/binary_sensor.py index 30e5ae049f0..41f1dacc8f3 100644 --- a/homeassistant/components/hive/binary_sensor.py +++ b/homeassistant/components/hive/binary_sensor.py @@ -5,6 +5,8 @@ from homeassistant.components.binary_sensor import ( DEVICE_CLASS_CONNECTIVITY, DEVICE_CLASS_MOTION, DEVICE_CLASS_OPENING, + DEVICE_CLASS_SMOKE, + DEVICE_CLASS_SOUND, BinarySensorEntity, ) @@ -14,6 +16,9 @@ DEVICETYPE = { "contactsensor": DEVICE_CLASS_OPENING, "motionsensor": DEVICE_CLASS_MOTION, "Connectivity": DEVICE_CLASS_CONNECTIVITY, + "SMOKE_CO": DEVICE_CLASS_SMOKE, + "DOG_BARK": DEVICE_CLASS_SOUND, + "GLASS_BREAK": DEVICE_CLASS_SOUND, } PARALLEL_UPDATES = 0 SCAN_INTERVAL = timedelta(seconds=15)