@@ -65,29 +65,29 @@ def _send_info(self, connection_uuid, info):
65
65
}
66
66
self ._send_msg (msg )
67
67
68
- def remove_service (self , zeroconf , service_type , name ):
68
+ def remove_service (self , zc , type_ , name ):
69
69
"""Remove service"""
70
70
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 :
72
72
msg = {
73
73
'objectType' : 'zeroConfDisconnect' ,
74
74
'connectionID' : connection_uuid
75
75
}
76
76
self ._send_msg (msg )
77
77
78
- def add_service (self , zeroconf , service_type , name ):
78
+ def add_service (self , zc , type_ , name ):
79
79
"""add service"""
80
80
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 )
83
83
if info :
84
84
self ._send_info (connection_uuid , info )
85
85
86
- def update_service (self , zeroconf , service_type , name ):
86
+ def update_service (self , zc , type_ , name ):
87
87
"""update service"""
88
88
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 )
91
91
if info :
92
92
self ._send_info (connection_uuid , info )
93
93
0 commit comments