python-swidget 1.4.4__tar.gz → 1.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_swidget-1.4.4 → python_swidget-1.4.5}/PKG-INFO +1 -1
- {python_swidget-1.4.4 → python_swidget-1.4.5}/pyproject.toml +1 -1
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/swidgetdevice.py +2 -2
- {python_swidget-1.4.4 → python_swidget-1.4.5}/README.md +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/__init__.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/cli.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/discovery.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/exceptions.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/provision.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/py.typed +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/swidgetdimmer.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/swidgetoutlet.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/swidgetswitch.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/swidgettimerswitch.py +0 -0
- {python_swidget-1.4.4 → python_swidget-1.4.5}/swidget/websocket.py +0 -0
|
@@ -722,8 +722,8 @@ class SwidgetDevice:
|
|
|
722
722
|
|
|
723
723
|
@property
|
|
724
724
|
def is_outlet(self) -> bool:
|
|
725
|
-
"""Return True if the device is an outlet."""
|
|
726
|
-
return self.device_type
|
|
725
|
+
"""Return True if the device is an outlet (any variant)."""
|
|
726
|
+
return self.device_type in (DeviceType.Outlet, DeviceType.Outlet20A)
|
|
727
727
|
|
|
728
728
|
@property
|
|
729
729
|
def is_switch(self) -> bool:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|