Rename switch to switchService to avoid AFRP name conflict

This commit is contained in:
MasseR committed 2026-09-29 23:47:58 +03:00
1 parent 138b62c54a
commit b643fe55b1
5 files changed
+14 -15

No files matched your search

+3 -4
View File
@@ -27,7 +27,7 @@ module HomeAssistant.Controller
, debug
, traceEvent
, traceValue
, switch
, switchService
, Target(..)
, lightBrightnessEvent
, lightTemperatureEvent
@@ -199,9 +199,8 @@ light targets Off = Service
, serviceTarget=targets
}
-- Name conflict with AFRP
switch :: [Target] -> Bool -> Service
switch targets b = Service
switchService :: [Target] -> Bool -> Service
switchService targets b = Service
{ serviceDomain="switch"
, serviceName= bool "turn_off" "turn_on" b
, serviceData=Nothing