Reload closest store on api menu request (#10962)

* reload closest store on api request

* revert change from debugging
This commit is contained in:
Craig J. Ward authored and Paulus Schoutsen committed 2017-12-05 22:11:22 -08:00
1 parent 63d6734612
commit 3f764f1981
1 file changed
+1
+1
View File
@@ -136,6 +136,7 @@ class Dominos():
def get_menu(self):
"""Return the products from the closest stores menu."""
self.update_closest_store()
if self.closest_store is None:
_LOGGER.warning('Cannot get menu. Store may be closed')
return []