diff --git a/custom_components/nordpool/aio_price.py b/custom_components/nordpool/aio_price.py index c30777c..9d737f0 100644 --- a/custom_components/nordpool/aio_price.py +++ b/custom_components/nordpool/aio_price.py @@ -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 diff --git a/custom_components/nordpool/manifest.json b/custom_components/nordpool/manifest.json index f4dcad4..925060f 100644 --- a/custom_components/nordpool/manifest.json +++ b/custom_components/nordpool/manifest.json @@ -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" diff --git a/custom_components/nordpool/test_parser.py b/custom_components/nordpool/test_parser.py index b344057..b628e6f 100644 --- a/custom_components/nordpool/test_parser.py +++ b/custom_components/nordpool/test_parser.py @@ -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)