File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1717 NodeRemoveRequest ,
1818 PlugwiseRequest ,
1919)
20- from ..messages .responses import PlugwiseResponse , StickResponseType
20+ from ..messages .responses import PlugwiseResponse # , StickResponseType
2121from .cache import NetworkRegistrationCache
2222
2323_LOGGER = logging .getLogger (__name__ )
@@ -248,10 +248,10 @@ async def register_node(self, mac: str) -> int:
248248 if not validate_mac (mac ):
249249 raise NodeError (f"MAC '{ mac } ' invalid" )
250250
251- request = NodeAddRequest (self ._send_to_controller , bytes (mac , UTF8 ), True )
252- response = await request .send ()
253- if response is None or response .ack_id != StickResponseType .ACCEPT :
254- raise NodeError (f"Failed to register node { mac } " )
251+ _ = NodeAddRequest (self ._send_to_controller , bytes (mac , UTF8 ), True )
252+ # response = await request.send()
253+ # if response is None or response.ack_id != StickResponseType.ACCEPT:
254+ # raise NodeError(f"Failed to register node {mac}")
255255 self .update_network_registration (self ._first_free_address , mac , None )
256256 self ._first_free_address += 1
257257 return self ._first_free_address - 1
You can’t perform that action at this time.
0 commit comments