Add strict type annotations to alarm_control_panel (#50945)
* Add strict type annotations * Apply suggestions * Type code as optional string
This commit is contained in:
parent
f55213d8b1
commit
dbefa8fac0
14 changed files with 128 additions and 77 deletions
|
@ -7,7 +7,9 @@ import requests
|
|||
import voluptuous as vol
|
||||
|
||||
import homeassistant.components.alarm_control_panel as alarm
|
||||
from homeassistant.components.alarm_control_panel import PLATFORM_SCHEMA
|
||||
from homeassistant.components.alarm_control_panel import (
|
||||
PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA,
|
||||
)
|
||||
from homeassistant.components.alarm_control_panel.const import (
|
||||
SUPPORT_ALARM_ARM_AWAY,
|
||||
SUPPORT_ALARM_ARM_HOME,
|
||||
|
@ -35,7 +37,7 @@ SERVICE_BYPASS_ZONE = "bypass_zone"
|
|||
SERVICE_UNBYPASS_ZONE = "unbypass_zone"
|
||||
ATTR_ZONE = "zone"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
PLATFORM_SCHEMA = PARENT_PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
|
||||
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue