Prevent fritzbox callmonitor phonebook_id 0 from being ignored (#45990)

This commit is contained in:
obelix05 2021-02-05 02:31:47 +01:00 committed by GitHub
parent c6bd5b1b71
commit d1b7d25a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ class FritzBoxPhonebook:
@Throttle(MIN_TIME_PHONEBOOK_UPDATE)
def update_phonebook(self):
"""Update the phone book dictionary."""
if not self.phonebook_id:
if self.phonebook_id is None:
return
self.phonebook_dict = self.fph.get_all_names(self.phonebook_id)