From e77fdc00f9f9e449037cf8bf66f7c50dcef57dd7 Mon Sep 17 00:00:00 2001 From: sirmrak Date: Wed, 8 Jul 2026 14:07:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BB=D0=BE=D0=B1=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=8B=D0=B5=20=D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D1=8B?= =?UTF-8?q?=20homeassistant.turn=5Fon=20=D0=B8=20homeassistant.turn=5Foff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/motion_light/coordinator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/motion_light/coordinator.py b/custom_components/motion_light/coordinator.py index 2903a49..223a0a3 100644 --- a/custom_components/motion_light/coordinator.py +++ b/custom_components/motion_light/coordinator.py @@ -664,7 +664,7 @@ class MotionLightCoordinator(DataUpdateCoordinator): ) self.logger.info("Turning ON switches: %s", self.switch_entities) await self.hass.services.async_call( - "switch", + "homeassistant", "turn_on", {"entity_id": self.switch_entities}, context=ctx, @@ -677,7 +677,7 @@ class MotionLightCoordinator(DataUpdateCoordinator): ) self.logger.info("Turning OFF switches: %s", self.switch_entities) await self.hass.services.async_call( - "switch", + "homeassistant", "turn_off", {"entity_id": self.switch_entities}, context=ctx, @@ -718,7 +718,7 @@ class MotionLightCoordinator(DataUpdateCoordinator): """Turn off switches in manual mode.""" self.logger.info("Turning OFF switches (manual timeout): %s", self.switch_entities) await self.hass.services.async_call( - "switch", + "homeassistant", "turn_off", {"entity_id": self.switch_entities}, )