Use identity check for zeroconf enum compare (#126444)

This commit is contained in:
J. Nick Koston
2024-09-22 21:41:10 -05:00
committed by GitHub
parent ba48a86156
commit abceed8112

View File

@@ -408,7 +408,7 @@ class ZeroconfDiscovery:
state_change,
)
if state_change == ServiceStateChange.Removed:
if state_change is ServiceStateChange.Removed:
self._async_dismiss_discoveries(name)
return