Skip to content

Commit

Permalink
Fix import of CurrencyMismatch and update nordpool-package to >=0.4.3…
Browse files Browse the repository at this point in the history
…,<1. Fixes #443
  • Loading branch information
Mathias Pihl committed Nov 7, 2024
1 parent 1766e01 commit 4c9d591
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions custom_components/nordpool/aio_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import backoff
from dateutil.parser import parse as parse_dt
from homeassistant.util import dt as dt_utils
from nordpool.base import CurrencyMismatch
from nordpool.elspot import Prices
from nordpool.elspot import CurrencyMismatch, Prices
from pytz import timezone, utc

from .misc import add_junk
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 @@ -13,7 +13,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/custom-components/nordpool/issues",
"requirements": [
"nordpool>=0.2",
"nordpool>=0.4.3,<1",
"backoff"
],
"version": "0.0.16"
Expand Down
3 changes: 1 addition & 2 deletions custom_components/nordpool/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
# https://repl.it/repls/WildImpishMass
from dateutil import tz
from dateutil.parser import parse as parse_dt
from nordpool.base import CurrencyMismatch
from nordpool.elspot import Prices
from nordpool.elspot import CurrencyMismatch, Prices

_LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
Expand Down

0 comments on commit 4c9d591

Please sign in to comment.