Skip to content

Commit

Permalink
Fix Entity event registration
Browse files Browse the repository at this point in the history
olijeffers0n committed Aug 23, 2022

Verified

This commit was signed with the committer’s verified signature.
1 parent 9ba67c5 commit edab908
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rustplus/__init__.py
Original file line number Diff line number Diff line change
@@ -12,5 +12,5 @@

__name__ = "rustplus"
__author__ = "olijeffers0n"
__version__ = "5.4.4"
__version__ = "5.4.5"
__support__ = "Discord: https://discord.gg/nQqJe8qvP8"
3 changes: 3 additions & 0 deletions rustplus/api/base_rust_api.py
Original file line number Diff line number Diff line change
@@ -297,6 +297,9 @@ def entity_event(self, eid):
:raises SmartDeviceRegistrationError
"""

if not self.remote.is_open():
raise ClientNotConnectedError("Client is not connected")

def wrap_func(coro) -> RegisteredListener:

if isinstance(coro, RegisteredListener):

0 comments on commit edab908

Please sign in to comment.