mirror of
https://github.com/home-assistant/core.git
synced 2025-08-12 00:55:26 +02:00
Prevent fritzbox callmonitor phonebook_id 0 from being ignored (#45990)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user