Fix initial state of pi4ioe (#42459)

pull/42516/head
Paulus Schoutsen 2020-10-27 15:08:56 +01:00
parent 1962a7c7ce
commit 45c1c2acac
1 changed files with 1 additions and 1 deletions

View File

@ -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):