From e39dc198fa6c1bd7899b328edb73c96cb4a6e9b7 Mon Sep 17 00:00:00 2001 From: Trefor Southwell <48591903+springfall2008@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:47:43 +0000 Subject: [PATCH] Bug with metric_min_improvement_discharge being changed to integer https://github.com/springfall2008/batpred/issues/1731 --- apps/predbat/config.py | 29 +---------------------------- apps/predbat/predbat.py | 4 +--- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/apps/predbat/config.py b/apps/predbat/config.py index d224b2d98..fd169e04a 100644 --- a/apps/predbat/config.py +++ b/apps/predbat/config.py @@ -321,7 +321,7 @@ "unit": "p", "icon": "mdi:currency-usd", "enable": "expert_mode", - "default": 5, + "default": 5.0, }, { "name": "metric_battery_cycle", @@ -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 diff --git a/apps/predbat/predbat.py b/apps/predbat/predbat.py index d888f89ab..16ee207c8 100644 --- a/apps/predbat/predbat.py +++ b/apps/predbat/predbat.py @@ -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 @@ -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"]