diff --git a/.docker/services/run b/.docker/services/run index 2c79a36..24dd76f 100755 --- a/.docker/services/run +++ b/.docker/services/run @@ -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 diff --git a/custom_components/chargepoint/const.py b/custom_components/chargepoint/const.py index 2437c8a..49f0dc4 100755 --- a/custom_components/chargepoint/const.py +++ b/custom_components/chargepoint/const.py @@ -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" diff --git a/custom_components/chargepoint/manifest.json b/custom_components/chargepoint/manifest.json index 2726522..fcbaae2 100755 --- a/custom_components/chargepoint/manifest.json +++ b/custom_components/chargepoint/manifest.json @@ -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" } diff --git a/custom_components/chargepoint/sensor.py b/custom_components/chargepoint/sensor.py index 0a1a28f..22e0d96 100755 --- a/custom_components/chargepoint/sensor.py +++ b/custom_components/chargepoint/sensor.py @@ -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 ), ]