diff --git a/heatmiserV3/heatmiser.py b/heatmiserV3/heatmiser.py
index <HASH>..<HASH> 100644
--- a/heatmiserV3/heatmiser.py
+++ b/heatmiserV3/heatmiser.py
@@ -69,11 +69,10 @@ class HeatmiserThermostat(object):
     def __init__(self, address, model, uh1):

         self.address = address

         self.model = model

-        with open("./config.yml", "r") as stream:

-            try:

-                self.config = yaml.load(stream)[model]

-            except yaml.YAMLError as exc:

-                logging.info("The YAML file is invalid: %s", exc)

+        try:

+            self.config = yaml.safe_load(config_yml)[model]

+        except yaml.YAMLError as exc:

+            logging.info("The YAML file is invalid: %s", exc)

         self.conn = uh1.registerThermostat(self)

         self.dcb = ""

         self.read_dcb()

diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
 setup(
     name='heatmiserV3',
     packages=['heatmiserV3'],  # this must be the same as the name above
-    version='1.1.7',
+    version='1.1.8',
     description='A library to interact with Heatmiser Themostats using V3',
     author='Andy Loughran',
     author_email='andy@zrmt.com',
Updated to <I> and handled config properly