eclipse-volttron / volttron-platform-driver

Apache License 2.0
0 stars 5 forks source link

Overrides file fails because it expecting json and gets dict instead. #31

Open riley206 opened 8 months ago

riley206 commented 8 months ago

Describe the bug When platform.driver starts its trying to read the override_patterns but gets an empty dict when it is expecting JSON. This also interferes with get_point, set_point and more.

File "/home/riley/.cache/pypoetry/virtualenvs/volttron-platform-driver-WYcNtKRm-py3.10/lib/python3.10/site-packages/platform_driver/overrides.py", line 27, in init values = loads(self.parent.vip.config.get("override_patterns")) File "/usr/lib/python3.10/json/init.py", line 339, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, ' TypeError: the JSON object must be str, bytes or bytearray, not dict

You can find the code here To Reproduce Steps to reproduce the behavior:

  1. start volttron
  2. run the clear overrides rpc call to create and empty dict
  3. restart volttron-platform-driver
  4. See error

System (please complete the following information):