Use is for UNDEFINED check in async_update_entry (#100599)

pull/100623/head
J. Nick Koston 2023-09-20 01:08:32 +02:00 committed by GitHub
parent f1a70189ac
commit 1d5905b591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)