Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
add PLATFORM_SCHEMAS
Browse files Browse the repository at this point in the history
  • Loading branch information
rlippmann committed Oct 11, 2023
1 parent 9ab3043 commit e94f051
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/adtpulse/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.config_validation import config_entry_only_config_schema
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity_platform import (
AddEntitiesCallback,
Expand Down Expand Up @@ -48,6 +49,7 @@

LOG = getLogger(__name__)

PLATFORM_SCHEMA = config_entry_only_config_schema
ALARM_MAP = {
ADT_ALARM_ARMING: STATE_ALARM_ARMING,
ADT_ALARM_AWAY: STATE_ALARM_ARMED_AWAY,
Expand Down
3 changes: 3 additions & 0 deletions custom_components/adtpulse/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.config_validation import config_entry_only_config_schema
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
Expand All @@ -37,6 +38,8 @@

LOG = getLogger(__name__)

PLATFORM_SCHEMA = config_entry_only_config_schema

# please keep these alphabetized to make changes easier
ADT_DEVICE_CLASS_TAG_MAP = {
"co": BinarySensorDeviceClass.CO,
Expand Down

0 comments on commit e94f051

Please sign in to comment.