Skip to content

Commit

Permalink
Update python-chargepoint to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbillow committed Jun 18, 2022
1 parent 871f450 commit cccc2b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .docker/services/run
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

cd /config || bashio::exit.nok "Can't find config folder!"

pip3 install python-chargepoint==1.5.0 || bashio::log.info "Failed to install python-chargepoint!"
pip3 install python-chargepoint==1.6.0 || bashio::log.info "Failed to install python-chargepoint!"

# Enable Jemalloc for Home Assistant Core, unless disabled
if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion custom_components/chargepoint/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
NAME = "ChargePoint"
DOMAIN = "chargepoint"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.2.2"
VERSION = "0.3.0"
ATTRIBUTION = "Data provided by https://www.chargepoint.com"
ISSUE_URL = "https://github.com/mbillow/ha-chargepoint/issues"

Expand Down
4 changes: 2 additions & 2 deletions custom_components/chargepoint/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"documentation": "https://github.com/mbillow/ha-chargepoint",
"codeowners": ["@mbillow"],
"requirements": [
"python-chargepoint==1.5.0"
"python-chargepoint==1.6.0"
],
"config_flow": true,
"issue_tracker": "https://github.com/mbillow/ha-chargepoint/issues",
"version": "0.2.2",
"version": "0.3.0",
"iot_class": "cloud_polling"
}
2 changes: 1 addition & 1 deletion custom_components/chargepoint/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def native_value(self):
value=lambda entity: f"{entity.session.total_amount:.2f}"
if entity.session
else "0.00",
unit=lambda entity: entity.client.region.currency_symbol
unit=lambda entity: entity.client.global_config.default_currency.symbol
),
]

Expand Down

0 comments on commit cccc2b4

Please sign in to comment.