unl0ck / homeassistant-addon-viessmann-gridbox

Fetching Viessmann Data over Gridbox Send via MQTT
Apache License 2.0
7 stars 2 forks source link

Parse error #43

Closed unl0ck closed 2 months ago

unl0ck commented 4 months ago

Describe the bug what do have

If no data respond

Log details

viessmann_gridbox_connector.GridboxConnector - WARNING - retrieve_live_data - Status Code 401
2024-07-23 17:29:48,072 - viessmann_gridbox_connector.GridboxConnector - WARNING - retrieve_live_data - Response {}
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/build/GridboxConnector/__main__.py", line 71, in <module>
    run_addon()
  File "/build/GridboxConnector/__main__.py", line 66, in run_addon
    logger.warning("No data received")
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1489, in warning
    self._log(WARNING, msg, args, **kwargs)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1624, in _log
    self.handle(record)
  File "/usr/local/lib/python3.10/logging/__init__.py", line 1633, in handle
    if (not self.disabled) and self.filter(record):
  File "/usr/local/lib/python3.10/logging/__init__.py", line 821, in filter
    result = f.filter(record)
  File "/build/GridboxConnector/utils.py", line 8, in filter
    literal_msg = ast.literal_eval(message)
  File "/usr/local/lib/python3.10/ast.py", line 64, in literal_eval
    node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
  File "/usr/local/lib/python3.10/ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 1
    No data received
       ^^^^
SyntaxError: invalid syntax
[17:29:49] INFO: Service gridboxconnector exited with code 1 (by signal 0)

Version

No response