diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index 16ee207c8..59632d2ba 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -24,9 +24,11 @@ try: import adbase as ad import appdaemon.plugins.hass.hassapi as hass + IS_APPDAEMON = True except: import hass as hass + IS_APPDAEMON = False import pytz