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.
- {python_swidget-1.2.1 → python_swidget-1.2.2}/PKG-INFO +1 -1
- {python_swidget-1.2.1 → python_swidget-1.2.2}/pyproject.toml +1 -1
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/swidgetdevice.py +2 -2
- {python_swidget-1.2.1 → python_swidget-1.2.2}/README.md +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/__init__.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/cli.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/discovery.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/exceptions.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/provision.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/py.typed +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/swidgetdimmer.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/swidgetoutlet.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/swidgetswitch.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/swidgettimerswitch.py +0 -0
- {python_swidget-1.2.1 → python_swidget-1.2.2}/swidget/websocket.py +0 -0
|
@@ -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[[
|
|
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[[
|
|
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
|
|
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
|