From a9891e40fd21be7772e5e02f915c55cd34926441 Mon Sep 17 00:00:00 2001 From: James Chaloupka <47349533+SirGoodenough@users.noreply.github.com> Date: Tue, 12 Sep 2023 13:10:32 -0500 Subject: [PATCH] Update Deprecated Selector Syntax (#99308) --- .../components/automation/blueprints/motion_light.yaml | 5 +++-- .../automation/blueprints/notify_leaving_zone.yaml | 9 ++++++--- .../script/blueprints/confirmable_notification.yaml | 3 ++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/automation/blueprints/motion_light.yaml b/homeassistant/components/automation/blueprints/motion_light.yaml index 5b389a3fc26..8f5d3f957f9 100644 --- a/homeassistant/components/automation/blueprints/motion_light.yaml +++ b/homeassistant/components/automation/blueprints/motion_light.yaml @@ -9,8 +9,9 @@ blueprint: name: Motion Sensor selector: entity: - domain: binary_sensor - device_class: motion + filter: + device_class: motion + domain: binary_sensor light_target: name: Light selector: diff --git a/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml b/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml index 0798a051173..e1e3bd5b2f6 100644 --- a/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml +++ b/homeassistant/components/automation/blueprints/notify_leaving_zone.yaml @@ -9,18 +9,21 @@ blueprint: name: Person selector: entity: - domain: person + filter: + domain: person zone_entity: name: Zone selector: entity: - domain: zone + filter: + domain: zone notify_device: name: Device to notify description: Device needs to run the official Home Assistant app to receive notifications. selector: device: - integration: mobile_app + filter: + integration: mobile_app trigger: platform: state diff --git a/homeassistant/components/script/blueprints/confirmable_notification.yaml b/homeassistant/components/script/blueprints/confirmable_notification.yaml index 37e04351d9a..c5f42494f02 100644 --- a/homeassistant/components/script/blueprints/confirmable_notification.yaml +++ b/homeassistant/components/script/blueprints/confirmable_notification.yaml @@ -12,7 +12,8 @@ blueprint: description: Device needs to run the official Home Assistant app to receive notifications. selector: device: - integration: mobile_app + filter: + integration: mobile_app title: name: "Title" description: "The title of the button shown in the notification."