python-swidget 1.2.1__py3-none-any.whl → 1.2.2__py3-none-any.whl

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.2.1
3
+ Version: 1.2.2
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
@@ -4,13 +4,13 @@ swidget/discovery.py,sha256=b5-C75d0qNl3-PGK6vq5i02uTFaRlQq_yc6l_qG4FmM,3865
4
4
  swidget/exceptions.py,sha256=JOSwaOwwv8YLry687vZmTQLY-BrrTpCs0CIZr7u-J48,79
5
5
  swidget/provision.py,sha256=Mw_0lHUj584F6fg2H80WVOd3Iz57C300hDnNDi1TSIw,4591
6
6
  swidget/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- swidget/swidgetdevice.py,sha256=BTfcSR91-KE5-BsH4X_HsBX6_KAOsb8cntjlnEV_uD4,21885
7
+ swidget/swidgetdevice.py,sha256=HdRyiQ3S0X8Dxq3p07Ksbbk5Xer39pVWPtPSPnf9ex8,21853
8
8
  swidget/swidgetdimmer.py,sha256=doPajuRoSSI0aU3WlT-t_WZyxsRyxAB-uMiXYz-YP88,1969
9
9
  swidget/swidgetoutlet.py,sha256=XUz42SV3_CaNp0gOGtBa1rAqG5xpmGpdLMem-OHCMM4,402
10
10
  swidget/swidgetswitch.py,sha256=VorjxnV42wWmu77CmWaasrMOAFIO15tQReRyaN7D-qU,402
11
11
  swidget/swidgettimerswitch.py,sha256=7-F81U7VWi-YCW6vYyOcZyKjttHCuW_P5LLbtLmdzfk,820
12
12
  swidget/websocket.py,sha256=27wCxJNmOAK1ba8lLQ3kxXEgg6Cp30Uri6P5OpaWV00,5768
13
- python_swidget-1.2.1.dist-info/METADATA,sha256=alzFNgTq0382gRCuJUoOr83RooQBDu-3FxCetA3ueP4,1853
14
- python_swidget-1.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
- python_swidget-1.2.1.dist-info/entry_points.txt,sha256=ksGZuoFNqyktLnxPUCFDHokC_7n1uu4GSMUEerwwDmY,43
16
- python_swidget-1.2.1.dist-info/RECORD,,
13
+ python_swidget-1.2.2.dist-info/METADATA,sha256=vbkdFQ4SWOjMgYuZi3Gne1uiiezeuNg55hjc-Q1379Q,1853
14
+ python_swidget-1.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
15
+ python_swidget-1.2.2.dist-info/entry_points.txt,sha256=ksGZuoFNqyktLnxPUCFDHokC_7n1uu4GSMUEerwwDmY,43
16
+ python_swidget-1.2.2.dist-info/RECORD,,
swidget/swidgetdevice.py CHANGED
@@ -116,7 +116,7 @@ class SwidgetDevice:
116
116
  async def disconnect(self) -> None:
117
117
  await self.stop()
118
118
 
119
- def add_event_callback(self, callback: Callable[[Dict, Any], None],) -> bool:
119
+ def add_event_callback(self, callback: Callable[[Any], Any]):
120
120
  for c in self._subscribers:
121
121
  if c == callback:
122
122
  _LOGGER.warn(f"Callback has already been added, not adding the same callback function again")
@@ -124,7 +124,7 @@ class SwidgetDevice:
124
124
  self._subscribers.append(callback)
125
125
  return True
126
126
 
127
- def remove_event_callback(self, callback: Callable[[Dict, Any], None],) -> bool:
127
+ def remove_event_callback(self, callback: Callable[[Any], Any]):
128
128
  if callback in self._subscribers:
129
129
  self._subscribers.remove(callback)
130
130
  return True