Add support for SimpliSafe Smoke+CO detector (#93217)

This commit is contained in:
Aaron Bach 2023-05-17 13:56:49 -06:00 committed by GitHub
parent 0828cc0e44
commit b9798e4f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -27,6 +27,7 @@ SUPPORTED_BATTERY_SENSOR_TYPES = [
DeviceTypes.MOTION, DeviceTypes.MOTION,
DeviceTypes.SIREN, DeviceTypes.SIREN,
DeviceTypes.SMOKE, DeviceTypes.SMOKE,
DeviceTypes.SMOKE_AND_CARBON_MONOXIDE,
DeviceTypes.TEMPERATURE, DeviceTypes.TEMPERATURE,
] ]
@ -38,6 +39,9 @@ TRIGGERED_SENSOR_TYPES = {
DeviceTypes.MOTION: BinarySensorDeviceClass.MOTION, DeviceTypes.MOTION: BinarySensorDeviceClass.MOTION,
DeviceTypes.SIREN: BinarySensorDeviceClass.SAFETY, DeviceTypes.SIREN: BinarySensorDeviceClass.SAFETY,
DeviceTypes.SMOKE: BinarySensorDeviceClass.SMOKE, DeviceTypes.SMOKE: BinarySensorDeviceClass.SMOKE,
# Although this sensor can technically apply to both smoke and carbon, we use the
# SMOKE device class for simplicity:
DeviceTypes.SMOKE_AND_CARBON_MONOXIDE: BinarySensorDeviceClass.SMOKE,
} }

View File

@ -13,5 +13,5 @@
"integration_type": "hub", "integration_type": "hub",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["simplipy"], "loggers": ["simplipy"],
"requirements": ["simplisafe-python==2023.04.0"] "requirements": ["simplisafe-python==2023.05.0"]
} }

View File

@ -2357,7 +2357,7 @@ simplehound==0.3
simplepush==2.1.1 simplepush==2.1.1
# homeassistant.components.simplisafe # homeassistant.components.simplisafe
simplisafe-python==2023.04.0 simplisafe-python==2023.05.0
# homeassistant.components.sisyphus # homeassistant.components.sisyphus
sisyphus-control==3.1.2 sisyphus-control==3.1.2

View File

@ -1702,7 +1702,7 @@ simplehound==0.3
simplepush==2.1.1 simplepush==2.1.1
# homeassistant.components.simplisafe # homeassistant.components.simplisafe
simplisafe-python==2023.04.0 simplisafe-python==2023.05.0
# homeassistant.components.slack # homeassistant.components.slack
slackclient==2.5.0 slackclient==2.5.0