From c21291e9dd7b3a91d0eb483002d48943c4d9ca15 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 9 Oct 2026 22:47:42 +0200 Subject: [PATCH] fix an init ordering problem --- apps/global/sleep.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/global/sleep.yaml b/apps/global/sleep.yaml index 1bb2b53..12c87a9 100644 --- a/apps/global/sleep.yaml +++ b/apps/global/sleep.yaml @@ -1,7 +1,7 @@ sleep_sensors: module: virtualsensors class: VirtualSensorsApp - priority: 5 # default priority app is 50, since most of them require sensors created by virtual sensors, it's important that virtual_sensors start first + priority: 1 # Start before apps such as alarm_clock that validate these sensors during initialization. sensors: binary_sensor.is_bedroom_sleeping: input_boolean.bedroom_sleeping or input_boolean.nap_switch @@ -17,4 +17,4 @@ sleep_sensors: - binary_sensor.is_bedroom_sleeping and input_boolean.bedroom_occupied_tonight - binary_sensor.is_living_room_sleeping and input_boolean.living_room_occupied_tonight - binary_sensor.is_desk_sleeping and input_boolean.desk_occupied_tonight - - binary_sensor.is_guestroom_sleeping and input_boolean.guestroom_occupied_tonight \ No newline at end of file + - binary_sensor.is_guestroom_sleeping and input_boolean.guestroom_occupied_tonight