Skip to content

Commit d15976d

Browse files
committed
Fix mqtt
1 parent e6d1e98 commit d15976d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyhon/hon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(
3535
self._mobile_id: str = mobile_id
3636
self._refresh_token: str = refresh_token
3737
self._mqtt_client: MQTTClient | None = None
38-
self._notify_function: Optional[Callable[[Any], None]] = None
38+
self._notify_function: Optional[Callable[[], None]] = None
3939

4040
async def __aenter__(self) -> Self:
4141
return await self.create()
@@ -127,7 +127,7 @@ def subscribe_updates(self, notify_function: Callable[[], None]) -> None:
127127

128128
def notify(self) -> None:
129129
if self._notify_function:
130-
self._notify_function(None)
130+
self._notify_function()
131131

132132
async def close(self) -> None:
133133
await self.api.close()

0 commit comments

Comments
 (0)