Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DEVICE_CLASS_DOOR and DEVICE_CLASS_SMOKE in various integrations #39950

Merged
merged 3 commits into from
Sep 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix wrong import
  • Loading branch information
springstan committed Sep 11, 2020
commit 3d42d33ad4e6144c31f87dededff67b5a0257d1d
3 changes: 2 additions & 1 deletion homeassistant/components/concord232/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import voluptuous as vol

from homeassistant.components.binary_sensor import (
DEVICE_CLASS_SMOKE,
DEVICE_CLASSES,
PLATFORM_SCHEMA,
BinarySensorEntity,
Expand Down Expand Up @@ -89,7 +90,7 @@ def get_opening_type(zone):
if "KEY" in zone["name"]:
return "safety"
if "SMOKE" in zone["name"]:
return DEVICE_CLASSES.DEVICE_CLASS_SMOKE
return DEVICE_CLASS_SMOKE
if "WATER" in zone["name"]:
return "water"
return "opening"
Expand Down