From df853345269dfbdcea4c476d824b97a79d70fa91 Mon Sep 17 00:00:00 2001 From: magnuselden Date: Thu, 22 Jun 2023 22:05:59 +0200 Subject: [PATCH] core 19.0.0a20 --- custom_components/peaqev/manifest.json | 2 +- custom_components/peaqev/sensors/money_sensor.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/custom_components/peaqev/manifest.json b/custom_components/peaqev/manifest.json index 9a1425cc..42359cf1 100644 --- a/custom_components/peaqev/manifest.json +++ b/custom_components/peaqev/manifest.json @@ -22,7 +22,7 @@ "iot_class": "calculated", "issue_tracker": "https://github.com/elden1337/hass-peaq/issues", "requirements": [ - "peaqevcore==19.0.0a19" + "peaqevcore==19.0.0a20" ], "version": "3.0.0a0" } \ No newline at end of file diff --git a/custom_components/peaqev/sensors/money_sensor.py b/custom_components/peaqev/sensors/money_sensor.py index 03a5ba32..fede0a7f 100644 --- a/custom_components/peaqev/sensors/money_sensor.py +++ b/custom_components/peaqev/sensors/money_sensor.py @@ -5,8 +5,6 @@ if TYPE_CHECKING: from custom_components.peaqev.peaqservice.hub.hub import HomeAssistantHub -import logging - from homeassistant.helpers.restore_state import RestoreEntity from custom_components.peaqev.peaqservice.chargecontroller.const import CHARGING_ALLOWED @@ -132,9 +130,9 @@ def extra_state_attributes(self) -> dict: "Current hour charge permittance": self._charge_permittance, "Avg price per kWh": self._avg_cost, "Max charge amount": self._max_charge, - "Nordpool average 7 days": self._average_nordpool, - "Nordpool average 30 days": self._average_data_30, - "nordpool_average_this_month": self._average_data_current_month, + #"Nordpool average 7 days": self._average_nordpool, + #"Nordpool average 30 days": self._average_data_30, + #"nordpool_average_this_month": self._average_data_current_month, "Nordpool average data": self._average_nordpool_data, "All hours": self._all_hours, }