From 15bdfb2a45a849f243282bc7b6f3b27812552070 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Mon, 30 May 2022 17:48:42 -0600 Subject: [PATCH] Fix invalid RainMachine syntax (#72732) --- homeassistant/components/rainmachine/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/rainmachine/switch.py b/homeassistant/components/rainmachine/switch.py index a220aafa2a5..8d339682305 100644 --- a/homeassistant/components/rainmachine/switch.py +++ b/homeassistant/components/rainmachine/switch.py @@ -393,7 +393,7 @@ class RainMachineZone(RainMachineActivitySwitch): ATTR_CURRENT_CYCLE: data["cycle"], ATTR_ID: data["uid"], ATTR_NO_CYCLES: data["noOfCycles"], - ATTR_RESTRICTIONS: data("restriction"), + ATTR_RESTRICTIONS: data["restriction"], ATTR_SLOPE: SLOPE_TYPE_MAP.get(data["slope"], 99), ATTR_SOIL_TYPE: SOIL_TYPE_MAP.get(data["soil"], 99), ATTR_SPRINKLER_TYPE: SPRINKLER_TYPE_MAP.get(data["group_id"], 99),