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 2017-12-05 03:47:48 -06:00 committed by Martin Hjelmare
parent 53d9fd18b7
commit d986bdab98

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 []