mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 08:35:15 +02:00
Prevent fritzbox callmonitor phonebook_id 0 from being ignored (#45990)
This commit is contained in:
committed by
Paulus Schoutsen
parent
64ab495318
commit
7c5af4e7e6
@@ -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