From d1b7d25a5db8456958fe07eca836f93ee7a120ba Mon Sep 17 00:00:00 2001 From: obelix05 Date: Fri, 5 Feb 2021 02:31:47 +0100 Subject: [PATCH] Prevent fritzbox callmonitor phonebook_id 0 from being ignored (#45990) --- homeassistant/components/fritzbox_callmonitor/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/fritzbox_callmonitor/base.py b/homeassistant/components/fritzbox_callmonitor/base.py index 79f82de95b7..ec62e196855 100644 --- a/homeassistant/components/fritzbox_callmonitor/base.py +++ b/homeassistant/components/fritzbox_callmonitor/base.py @@ -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)