Skip to content

Commit

Permalink
Add support for SimpliSafe Smoke+CO detector (home-assistant#93217)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored May 17, 2023
1 parent 0828cc0 commit b9798e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions homeassistant/components/simplisafe/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
DeviceTypes.MOTION,
DeviceTypes.SIREN,
DeviceTypes.SMOKE,
DeviceTypes.SMOKE_AND_CARBON_MONOXIDE,
DeviceTypes.TEMPERATURE,
]

Expand All @@ -38,6 +39,9 @@
DeviceTypes.MOTION: BinarySensorDeviceClass.MOTION,
DeviceTypes.SIREN: BinarySensorDeviceClass.SAFETY,
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,
}


Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/simplisafe/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"integration_type": "hub",
"iot_class": "cloud_polling",
"loggers": ["simplipy"],
"requirements": ["simplisafe-python==2023.04.0"]
"requirements": ["simplisafe-python==2023.05.0"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ simplehound==0.3
simplepush==2.1.1

# homeassistant.components.simplisafe
simplisafe-python==2023.04.0
simplisafe-python==2023.05.0

# homeassistant.components.sisyphus
sisyphus-control==3.1.2
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ simplehound==0.3
simplepush==2.1.1

# homeassistant.components.simplisafe
simplisafe-python==2023.04.0
simplisafe-python==2023.05.0

# homeassistant.components.slack
slackclient==2.5.0
Expand Down

0 comments on commit b9798e4

Please sign in to comment.