From 1d5905b591e612c25615ba6cb7510c3964a96bee Mon Sep 17 00:00:00 2001
From: "J. Nick Koston" <nick@koston.org>
Date: Wed, 20 Sep 2023 01:08:32 +0200
Subject: [PATCH] Use is for UNDEFINED check in async_update_entry (#100599)

---
 homeassistant/config_entries.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py
index 046f403642e..f4e61bfffbd 100644
--- a/homeassistant/config_entries.py
+++ b/homeassistant/config_entries.py
@@ -1348,7 +1348,7 @@ class ConfigEntries:
             ("pref_disable_new_entities", pref_disable_new_entities),
             ("pref_disable_polling", pref_disable_polling),
         ):
-            if value == UNDEFINED or getattr(entry, attr) == value:
+            if value is UNDEFINED or getattr(entry, attr) == value:
                 continue
 
             setattr(entry, attr, value)
-- 
GitLab