python-swidget 1.2.1__tar.gz → 1.2.2__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.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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-swidget"
3
- version = "1.2.1"
3
+ version = "1.2.2"
4
4
  description = "Python API for Swidget smart devices"
5
5
  license = "GPL-3.0-or-later"
6
6
  authors = ["Swidget"]
@@ -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
File without changes