From 657ff58500bf820f18282d4f1d4d0158b3f7719a Mon Sep 17 00:00:00 2001
From: WebSpider <WebSpider@users.noreply.github.com>
Date: Mon, 26 Aug 2024 17:39:27 +0200
Subject: [PATCH] Fix device class for motion_light blueprint (#124495)

* Fix device class for motion_light blueprint.
Fixes #124353

* Update to accept both motion and occupancy
---
 .../components/automation/blueprints/motion_light.yaml      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/homeassistant/components/automation/blueprints/motion_light.yaml b/homeassistant/components/automation/blueprints/motion_light.yaml
index 8f5d3f957f9..ad9c6f0286b 100644
--- a/homeassistant/components/automation/blueprints/motion_light.yaml
+++ b/homeassistant/components/automation/blueprints/motion_light.yaml
@@ -10,8 +10,10 @@ blueprint:
       selector:
         entity:
           filter:
-            device_class: motion
-            domain: binary_sensor
+            - device_class: occupancy
+              domain: binary_sensor
+            - device_class: motion
+              domain: binary_sensor
     light_target:
       name: Light
       selector:
-- 
GitLab