Fixed postlund's comments. Unified open_close config options

This commit is contained in:
rospogrigio
2020-10-01 12:40:48 +02:00
committed by rospogrigio
parent ee853ddb83
commit ff79bd04cd
5 changed files with 47 additions and 58 deletions

View File

@@ -65,11 +65,7 @@ class LocaltuyaSwitch(LocalTuyaEntity, SwitchEntity):
"""Initialize the Tuya switch."""
super().__init__(device, config_entry, switchid, **kwargs)
self._state = None
print(
"Initialized switch [{}] with status [{}] and state [{}]".format(
self.name, self._status, self._state
)
)
print("Initialized switch [{}]".format(self.name))
@property
def is_on(self):