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)