Skip to content

Commit 46b4d60

Browse files
committed
Correct
1 parent 393e934 commit 46b4d60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise_usb/network/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
NodeRejoinResponse,
2828
NodeResponseType,
2929
PlugwiseResponse,
30+
StickResponseType,
3031
)
3132
from ..nodes import get_plugwise_node
3233
from .registry import StickNetworkRegister
@@ -520,7 +521,7 @@ async def allow_join_requests(self, state: bool) -> None:
520521

521522
if (
522523
response.response_type != NodeResponseType.JOIN_ACCEPTED
523-
or response.response_type != StickResponse,
524+
or response.response_type != StickResponseType
524525
):
525526
raise MessageError(
526527
f"Unknown NodeResponseType '{response.response_type.name}' received"

0 commit comments

Comments
 (0)