mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove previously-deprecated SimpliSafe service (#81054)
This commit is contained in:
parent
d72b8a025f
commit
fe4da8d584
@ -139,24 +139,16 @@ VOLUME_MAP = {
|
|||||||
"off": Volume.OFF,
|
"off": Volume.OFF,
|
||||||
}
|
}
|
||||||
|
|
||||||
SERVICE_NAME_CLEAR_NOTIFICATIONS = "clear_notifications"
|
|
||||||
SERVICE_NAME_REMOVE_PIN = "remove_pin"
|
SERVICE_NAME_REMOVE_PIN = "remove_pin"
|
||||||
SERVICE_NAME_SET_PIN = "set_pin"
|
SERVICE_NAME_SET_PIN = "set_pin"
|
||||||
SERVICE_NAME_SET_SYSTEM_PROPERTIES = "set_system_properties"
|
SERVICE_NAME_SET_SYSTEM_PROPERTIES = "set_system_properties"
|
||||||
|
|
||||||
SERVICES = (
|
SERVICES = (
|
||||||
SERVICE_NAME_CLEAR_NOTIFICATIONS,
|
|
||||||
SERVICE_NAME_REMOVE_PIN,
|
SERVICE_NAME_REMOVE_PIN,
|
||||||
SERVICE_NAME_SET_PIN,
|
SERVICE_NAME_SET_PIN,
|
||||||
SERVICE_NAME_SET_SYSTEM_PROPERTIES,
|
SERVICE_NAME_SET_SYSTEM_PROPERTIES,
|
||||||
)
|
)
|
||||||
|
|
||||||
SERVICE_CLEAR_NOTIFICATIONS_SCHEMA = vol.Schema(
|
|
||||||
{
|
|
||||||
vol.Required(ATTR_DEVICE_ID): cv.string,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
SERVICE_REMOVE_PIN_SCHEMA = vol.Schema(
|
SERVICE_REMOVE_PIN_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(ATTR_DEVICE_ID): cv.string,
|
vol.Required(ATTR_DEVICE_ID): cv.string,
|
||||||
@ -384,19 +376,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
@_verify_domain_control
|
|
||||||
@extract_system
|
|
||||||
async def async_clear_notifications(call: ServiceCall, system: SystemType) -> None:
|
|
||||||
"""Clear all active notifications."""
|
|
||||||
_async_log_deprecated_service_call(
|
|
||||||
hass,
|
|
||||||
call,
|
|
||||||
"button.press",
|
|
||||||
"button.alarm_control_panel_clear_notifications",
|
|
||||||
"2022.12.0",
|
|
||||||
)
|
|
||||||
await system.async_clear_notifications()
|
|
||||||
|
|
||||||
@_verify_domain_control
|
@_verify_domain_control
|
||||||
@extract_system
|
@extract_system
|
||||||
async def async_remove_pin(call: ServiceCall, system: SystemType) -> None:
|
async def async_remove_pin(call: ServiceCall, system: SystemType) -> None:
|
||||||
@ -423,11 +402,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
)
|
)
|
||||||
|
|
||||||
for service, method, schema in (
|
for service, method, schema in (
|
||||||
(
|
|
||||||
SERVICE_NAME_CLEAR_NOTIFICATIONS,
|
|
||||||
async_clear_notifications,
|
|
||||||
SERVICE_CLEAR_NOTIFICATIONS_SCHEMA,
|
|
||||||
),
|
|
||||||
(SERVICE_NAME_REMOVE_PIN, async_remove_pin, SERVICE_REMOVE_PIN_SCHEMA),
|
(SERVICE_NAME_REMOVE_PIN, async_remove_pin, SERVICE_REMOVE_PIN_SCHEMA),
|
||||||
(SERVICE_NAME_SET_PIN, async_set_pin, SERVICE_SET_PIN_SCHEMA),
|
(SERVICE_NAME_SET_PIN, async_set_pin, SERVICE_SET_PIN_SCHEMA),
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user