File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1183,9 +1183,6 @@ def _on_mdns_service_state_change(
1183
1183
name : str ,
1184
1184
state_change : ServiceStateChange ,
1185
1185
) -> None :
1186
- if state_change not in (ServiceStateChange .Added , ServiceStateChange .Removed ):
1187
- # we're not interested in update messages so return early
1188
- return
1189
1186
if service_type == MDNS_TYPE_COMMISSIONABLE_NODE :
1190
1187
asyncio .create_task (
1191
1188
self ._on_mdns_commissionable_node_state (name , state_change )
@@ -1211,7 +1208,7 @@ async def _on_mdns_operational_node_state(
1211
1208
try :
1212
1209
self ._mdns_inprogress .add (node_id )
1213
1210
node = self ._nodes [node_id ]
1214
- if state_change == ServiceStateChange .Added :
1211
+ if state_change in ( ServiceStateChange .Added , ServiceStateChange . Updated ) :
1215
1212
if node .available :
1216
1213
return # node is already set-up, no action needed
1217
1214
LOGGER .info ("Node %s discovered on MDNS" , node_id )
You can’t perform that action at this time.
0 commit comments