Skip to content

Commit

Permalink
bump 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellowlol committed Nov 11, 2022
1 parent ecce460 commit 100e887
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions custom_components/nordpool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


NAME = DOMAIN
VERSION = "0.0.8"
VERSION = "0.0.9"
ISSUEURL = "https://github.com/custom-components/nordpool/issues"

STARTUP = f"""
Expand Down Expand Up @@ -166,7 +166,7 @@ async def new_data_cb(n):
api.listeners.append(cb_update_tomorrow)
api.listeners.append(cb_new_hr)
api.listeners.append(cb_new_day)

return True


Expand Down
5 changes: 2 additions & 3 deletions custom_components/nordpool/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import voluptuous as vol
from homeassistant import config_entries
from homeassistant.helpers.template import is_template_string, Template
from homeassistant.helpers.template import Template

from . import DOMAIN
from .sensor import _PRICE_IN, _REGIONS, DEFAULT_TEMPLATE
Expand Down Expand Up @@ -77,11 +77,10 @@ async def _valid_template(self, user_template):
try:
#
ut = Template(user_template, self.hass).async_render(
current_price=0
current_price=0,
) # Add current price as 0 as we dont know it yet..
_LOGGER.debug("user_template %s value %s", user_template, ut)

return True
if isinstance(ut, float):
return True
else:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nordpool/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"requirements": [
"nordpool>=0.2"
],
"version": "0.0.7"
"version": "0.0.9"
}

0 comments on commit 100e887

Please sign in to comment.