mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Fix SimpliSafe service calls that require a device selector (#83200)
fixes undefined
This commit is contained in:
parent
b735e66d2f
commit
c6ad48e236
@ -237,11 +237,12 @@ def _async_get_system_for_service_call(
|
|||||||
) is None:
|
) is None:
|
||||||
raise ValueError("No base station registered for alarm control panel")
|
raise ValueError("No base station registered for alarm control panel")
|
||||||
|
|
||||||
[system_id] = [
|
[system_id_str] = [
|
||||||
identity[1]
|
identity[1]
|
||||||
for identity in base_station_device_entry.identifiers
|
for identity in base_station_device_entry.identifiers
|
||||||
if identity[0] == DOMAIN
|
if identity[0] == DOMAIN
|
||||||
]
|
]
|
||||||
|
system_id = int(system_id_str)
|
||||||
|
|
||||||
for entry_id in base_station_device_entry.config_entries:
|
for entry_id in base_station_device_entry.config_entries:
|
||||||
if (simplisafe := hass.data[DOMAIN].get(entry_id)) is None:
|
if (simplisafe := hass.data[DOMAIN].get(entry_id)) is None:
|
||||||
|
@ -10,7 +10,8 @@ remove_pin:
|
|||||||
selector:
|
selector:
|
||||||
device:
|
device:
|
||||||
integration: simplisafe
|
integration: simplisafe
|
||||||
model: alarm_control_panel
|
entity:
|
||||||
|
domain: alarm_control_panel
|
||||||
label_or_pin:
|
label_or_pin:
|
||||||
name: Label/PIN
|
name: Label/PIN
|
||||||
description: The label/value to remove.
|
description: The label/value to remove.
|
||||||
@ -29,7 +30,8 @@ set_pin:
|
|||||||
selector:
|
selector:
|
||||||
device:
|
device:
|
||||||
integration: simplisafe
|
integration: simplisafe
|
||||||
model: alarm_control_panel
|
entity:
|
||||||
|
domain: alarm_control_panel
|
||||||
label:
|
label:
|
||||||
name: Label
|
name: Label
|
||||||
description: The label of the PIN
|
description: The label of the PIN
|
||||||
@ -55,7 +57,8 @@ set_system_properties:
|
|||||||
selector:
|
selector:
|
||||||
device:
|
device:
|
||||||
integration: simplisafe
|
integration: simplisafe
|
||||||
model: alarm_control_panel
|
entity:
|
||||||
|
domain: alarm_control_panel
|
||||||
alarm_duration:
|
alarm_duration:
|
||||||
name: Alarm duration
|
name: Alarm duration
|
||||||
description: The length of a triggered alarm
|
description: The length of a triggered alarm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user