Skip to content

Commit

Permalink
Swap grid charging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 8, 2024
1 parent 6fac018 commit 554f96d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/teslemetry/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ class TeslemetrySwitchEntityDescription(SwitchEntityDescription):
ENERGY_INFO_DESCRIPTION = TeslemetrySwitchEntityDescription(
key="components_disallow_charge_from_grid_with_solar_installed",
on_func=lambda api: api.grid_import_export(
disallow_charge_from_grid_with_solar_installed=True
disallow_charge_from_grid_with_solar_installed=False
),
off_func=lambda api: api.grid_import_export(
disallow_charge_from_grid_with_solar_installed=False
disallow_charge_from_grid_with_solar_installed=True
),
scopes=[Scopes.ENERGY_CMDS],
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/teslemetry/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@
"name": "Valet mode"
},
"components_disallow_charge_from_grid_with_solar_installed":{
"name": "Disallow charge from grid with solar"
"name": "Allow charging from grid"
},
"storm_mode_enabled":{
"name": "Storm mode"
Expand Down

0 comments on commit 554f96d

Please sign in to comment.