Skip to content

Commit

Permalink
Fixing importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
andylockran committed Jan 28, 2024
1 parent e1e9f61 commit f130185
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
4 changes: 2 additions & 2 deletions heatmiserv3/heatmiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import yaml
import logging
from . import constants
import pkg_resources
import importlib_resources

config_yml = pkg_resources.resource_string(__name__, "config.yml")
config_yml = importlib_resources.files('heatmiserv3').joinpath('config.yml')


logging.basicConfig(level=logging.INFO)
Expand Down
35 changes: 34 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "heatmiserv3"
version = "2.0.0"
version = "2.0.1"
description = "A library to interact with Heatmiser Themostats using V3 protocol."
authors = ["Andy Loughran <andy@lockran.com>"]
license = "Apache 2"
Expand All @@ -12,6 +12,7 @@ appdirs = "^1.4.4"
pyserial = "^3.5"
pyserial-asyncio = "^0.6"
pyyaml = "^6.0.1"
importlib-resources = "^6.1.1"


[tool.poetry.group.test.dependencies]
Expand Down

0 comments on commit f130185

Please sign in to comment.