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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-swidget
3
- Version: 1.4.4
3
+ Version: 1.4.5
4
4
  Summary: Python API for Swidget smart devices
5
5
  Home-page: https://github.com/swidget/python-swidget
6
6
  License: GPL-3.0-or-later
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-swidget"
3
- version = "1.4.4"
3
+ version = "1.4.5"
4
4
  description = "Python API for Swidget smart devices"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["Swidget"]
@@ -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 == DeviceType.Outlet
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