Skip to content

Commit

Permalink
Update python-chargepoint to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbillow committed May 27, 2022
1 parent 0f2fe1d commit 0c3eb03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 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.2.2 || bashio::log.info "Failed to install python-chargepoint!"
pip3 install python-chargepoint==1.3.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.1.3"
VERSION = "0.2.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.2.2"
"python-chargepoint==1.3.0"
],
"config_flow": true,
"issue_tracker": "https://github.com/mbillow/ha-chargepoint/issues",
"version": "0.1.3",
"version": "0.2.0",
"iot_class": "cloud_polling"
}
4 changes: 1 addition & 3 deletions custom_components/chargepoint/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +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.session.currency_iso_code
if entity.session
else "USD",
unit=lambda entity: entity.client.region.currency_symbol
),
]

Expand Down

0 comments on commit 0c3eb03

Please sign in to comment.