Skip to content

Commit

Permalink
core 19.0.0a23
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Jun 25, 2023
1 parent df85334 commit 65c4ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/peaqev/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"iot_class": "calculated",
"issue_tracker": "https://github.com/elden1337/hass-peaq/issues",
"requirements": [
"peaqevcore==19.0.0a20"
"peaqevcore==19.0.0a23"
],
"version": "3.0.0a0"
}
5 changes: 3 additions & 2 deletions custom_components/peaqev/sensors/money_sensor_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import datetime, timedelta
import logging
from datetime import datetime

from peaqevcore.services.hoursselection_service_new.models.hour_price import HourPrice

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -86,7 +87,7 @@ def set_all_hours_display(future_hours: list[HourPrice]) -> dict:
case 1:
ret[dtstr] = "Start"
case _:
ret[dtstr] = f"Caution {str(h.permittance * 100)}%"
ret[dtstr] = f"Caution {str(int(h.permittance * 100))}%"
return ret


Expand Down

0 comments on commit 65c4ee1

Please sign in to comment.