Skip to content

Commit

Permalink
Place request-definitions in the yaml file for easier manipulation
Browse files Browse the repository at this point in the history
Place request-definitions in the yaml file for easier manipulation
Place request definitions in the yaml file for easier manipulation
  • Loading branch information
StephanJoubert committed Feb 6, 2022
1 parent 894f818 commit 5c0dd7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/solarman/solarman.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def __init__(self, path, serial, host, port):
self._host = host
self._port = port
self._current_val = None
with open(self.path +'parameters.yaml') as f:
self.parameter_definition = yaml.full_load(f)

def modbus(self, data):
POLY = 0xA001
Expand Down

0 comments on commit 5c0dd7a

Please sign in to comment.