From 45c1c2acac34168fde500e88550535d18d7beeab Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 27 Oct 2020 15:08:56 +0100 Subject: [PATCH] Fix initial state of pi4ioe (#42459) --- homeassistant/components/pi4ioe5v9xxxx/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/pi4ioe5v9xxxx/switch.py b/homeassistant/components/pi4ioe5v9xxxx/switch.py index 6bac673459f..81de76c086c 100644 --- a/homeassistant/components/pi4ioe5v9xxxx/switch.py +++ b/homeassistant/components/pi4ioe5v9xxxx/switch.py @@ -55,7 +55,7 @@ class Pi4ioe5v9Switch(SwitchEntity): self._name = name or DEVICE_DEFAULT_NAME self._pin = pin self._invert_logic = invert_logic - self._state = False + self._state = not invert_logic @property def name(self):