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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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