summaryrefslogtreecommitdiff
path: root/smart_home/outlets.py
diff options
context:
space:
mode:
Diffstat (limited to 'smart_home/outlets.py')
-rw-r--r--smart_home/outlets.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/smart_home/outlets.py b/smart_home/outlets.py
index d4a4886..d29fc4a 100644
--- a/smart_home/outlets.py
+++ b/smart_home/outlets.py
@@ -307,23 +307,23 @@ class MerossOutlet(BaseOutlet):
@overrides
def turn_on(self) -> bool:
self.lazy_initialize_device()
- assert self.meross_wrapper
- assert self.device
+ assert self.meross_wrapper is not None
+ assert self.device is not None
self.meross_wrapper.loop.run_until_complete(self.device.async_turn_on())
return True
@overrides
def turn_off(self) -> bool:
self.lazy_initialize_device()
- assert self.meross_wrapper
- assert self.device
+ assert self.meross_wrapper is not None
+ assert self.device is not None
self.meross_wrapper.loop.run_until_complete(self.device.async_turn_off())
return True
@overrides
def is_on(self) -> bool:
self.lazy_initialize_device()
- assert self.device
+ assert self.device is not None
return self.device.is_on()
@overrides