Skip to content

Commit

Permalink
Bug with metric_min_improvement_discharge being changed to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Dec 14, 2024
1 parent c30344d commit e39dc19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
29 changes: 1 addition & 28 deletions apps/predbat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"unit": "p",
"icon": "mdi:currency-usd",
"enable": "expert_mode",
"default": 5,
"default": 5.0,
},
{
"name": "metric_battery_cycle",
Expand Down Expand Up @@ -1322,33 +1322,6 @@
"can_span_midnight": True,
"charge_discharge_with_rate": False,
},
"SA": {
"name": "Solar Assistant",
"has_rest_api": False,
"has_mqtt_api": False,
"output_charge_control": "none",
"charge_control_immediate": False,
"current_dp": 0,
"has_charge_enable_time": False,
"has_discharge_enable_time": False,
"has_target_soc": False,
"has_reserve_soc": False,
"has_timed_pause": False,
"charge_time_format": "S",
"charge_time_entity_is_option": False,
"soc_units": "%",
"num_load_entities": 1,
"has_ge_inverter_mode": False,
"time_button_press": False,
"clock_time_format": "%Y-%m-%dT%H:%M:%S",
"write_and_poll_sleep": 5,
"has_time_window": False,
"support_charge_freeze": False,
"support_discharge_freeze": False,
"has_idle_time": False,
"can_span_midnight": False,
"charge_discharge_with_rate": False,
},
}

# Control modes for Solax inverters
Expand Down
4 changes: 1 addition & 3 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
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
Expand All @@ -38,7 +36,7 @@
import asyncio
import json

THIS_VERSION = "v8.8.6"
THIS_VERSION = "v8.8.7"

# fmt: off
PREDBAT_FILES = ["predbat.py", "config.py", "prediction.py", "gecloud.py","utils.py", "inverter.py", "ha.py", "download.py", "unit_test.py", "web.py", "predheat.py", "futurerate.py", "octopus.py", "solcast.py","execute.py", "plan.py", "fetch.py", "output.py", "userinterface.py"]
Expand Down

0 comments on commit e39dc19

Please sign in to comment.