mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Prevent fritzbox callmonitor phonebook_id 0 from being ignored (#45990)
This commit is contained in:
parent
c6bd5b1b71
commit
d1b7d25a5d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user