Skip to content

Commit

Permalink
Enable forced discharging - fix switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish Findlay committed Oct 3, 2022
1 parent b352084 commit 1fe74cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/battery_sim/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from homeassistant.components.switch import SwitchEntity

from .const import DOMAIN, CONF_BATTERY, OVERIDE_CHARGING, PAUSE_BATTERY
from .const import DOMAIN, CONF_BATTERY, OVERIDE_CHARGING, PAUSE_BATTERY, FORCE_DISCHARGE

_LOGGER = logging.getLogger(__name__)

Expand All @@ -19,6 +19,11 @@
"name": PAUSE_BATTERY,
"key": "pause_battery_enabled",
"icon": "mdi:pause",
},
{
"name": FORCE_DISCHARGE,
"key": "force _battery_enabled",
"icon": "mdi:home-export-outline"
}
]

Expand Down

0 comments on commit 1fe74cd

Please sign in to comment.