Skip to content

Commit

Permalink
Fix 'default' crash (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Nov 21, 2023
1 parent 8709ab8 commit 1c878c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import appdaemon.plugins.hass.hassapi as hass
import adbase as ad

THIS_VERSION = "v7.13.3"
THIS_VERSION = "v7.13.4"
TIME_FORMAT = "%Y-%m-%dT%H:%M:%S%z"
TIME_FORMAT_SECONDS = "%Y-%m-%dT%H:%M:%S.%f%z"
TIME_FORMAT_OCTOPUS = "%Y-%m-%d %H:%M:%S%z"
Expand Down Expand Up @@ -8864,7 +8864,7 @@ def load_user_config(self, quiet=True, register=False):

# Default?
if ha_value is None:
ha_value = item["default"]
ha_value = item.get("default", None)

# Switch convert to text
if type == "switch" and isinstance(ha_value, str):
Expand Down

0 comments on commit 1c878c8

Please sign in to comment.