@@ -65,29 +65,29 @@ def _send_info(self, connection_uuid, info):
6565 }
6666 self ._send_msg (msg )
6767
68- def remove_service (self , zeroconf , service_type , name ):
68+ def remove_service (self , zc , type_ , name ):
6969 """Remove service"""
7070 connection_uuid = name .split ("._" , 1 )[0 ]
71- if service_type == self .service_type and connection_uuid != self .connection_uuid :
71+ if type_ == self .service_type and connection_uuid != self .connection_uuid :
7272 msg = {
7373 'objectType' : 'zeroConfDisconnect' ,
7474 'connectionID' : connection_uuid
7575 }
7676 self ._send_msg (msg )
7777
78- def add_service (self , zeroconf , service_type , name ):
78+ def add_service (self , zc , type_ , name ):
7979 """add service"""
8080 connection_uuid = name .split ("." , 1 )[0 ]
81- if service_type == self .service_type and connection_uuid != self .connection_uuid :
82- info = zeroconf .get_service_info (service_type , name )
81+ if type_ == self .service_type and connection_uuid != self .connection_uuid :
82+ info = zc .get_service_info (type_ , name )
8383 if info :
8484 self ._send_info (connection_uuid , info )
8585
86- def update_service (self , zeroconf , service_type , name ):
86+ def update_service (self , zc , type_ , name ):
8787 """update service"""
8888 connection_uuid = name .split ("." , 1 )[0 ]
89- if service_type == self .service_type and connection_uuid != self .connection_uuid :
90- info = zeroconf .get_service_info (service_type , name )
89+ if zc == self .service_type and connection_uuid != self .connection_uuid :
90+ info = zc .get_service_info (type_ , name )
9191 if info :
9292 self ._send_info (connection_uuid , info )
9393
0 commit comments