Skip to content

Commit

Permalink
Fixed with command
Browse files Browse the repository at this point in the history
  • Loading branch information
andylockran committed Feb 4, 2024
1 parent bede2ef commit 7de3539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions heatmiserv3/heatmiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def __init__(self, address, model, uh1):
self.address = address
self.model = model
try:
with open(config_yml) as config_file:
self.config = yaml.safe_load(config_file)[model]
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)
Expand Down

0 comments on commit 7de3539

Please sign in to comment.