Skip to content

Commit

Permalink
Add missing translations (#18)
Browse files Browse the repository at this point in the history
Fixes #17

- Adds missing translation for currency (previoulsy mis-spelled)
- Adds missing translation for update sensors
  • Loading branch information
mattrayner authored Jan 18, 2023
1 parent 78ccdba commit 673e280
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/pod_point/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def async_step_user(self, user_input=None) -> FlowResult:
}

options_schema = vol.Schema(
{**currency_schema, **poll_schema, **platforms_schema, **debug_schema}
{**currency_schema, **platforms_schema, **debug_schema, **poll_schema}
)

return self.async_show_form(step_id="user", data_schema=options_schema)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pod_point/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
DEFAULT_SCAN_INTERVAL = 300
CONF_HTTP_DEBUG = "http_debug"
DEFAULT_HTTP_DEBUG = False
CONF_CURRENCY = "currancy"
CONF_CURRENCY = "currency"
DEFAULT_CURRENCY = "GBP"

# Defaults
Expand Down
4 changes: 3 additions & 1 deletion custom_components/pod_point/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"sensor": "Pod status, energy and cost sensors enabled.",
"switch": "Charging switch enabled.",
"scan_interval": "Poll interval (seconds)",
"http_debug": "Enable verbose HTTP logging."
"http_debug": "Enable verbose HTTP logging.",
"update": "Enable firmware sensor",
"currency": "Currency used for cost sensors"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pod_point/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Version of Pod Point integration"""
__version__ = "1.0.0"
__version__ = "1.0.1"

0 comments on commit 673e280

Please sign in to comment.