Giter VIP home page Giter VIP logo

Comments (10)

bieniu avatar bieniu commented on June 16, 2024

Please attach debug log https://github.com/bieniu/ha-shellies-discovery#how-to-debug
Only English is allowed in the issue description. Please edit the content.

from ha-shellies-discovery.

jsapede avatar jsapede commented on June 16, 2024

content edited but the french part was from the HA Logs
debucg log launched

from ha-shellies-discovery.

jsapede avatar jsapede commented on June 16, 2024

this ?

Logger: homeassistant.components.automation.shellies_discovery
Source: components/python_script/init.py:153
Integration: Automatisation (documentation, issues)
First occurred: 15:00:00 (2 occurrences)
Last logged: 15:00:00

Shellies Discovery: Error executing script. Unexpected error for call_service at pos 1: AST constructor recursion depth mismatch (before=33, after=61)
While executing automation automation.shellies_discovery
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 703, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 665, in _async_run_long_action
return long_task.result()
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 1965, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2013, in _execute_service
return await self._hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/python_script/init.py", line 112, in python_script_service_handler
execute_script(hass, call.service, call.data)
File "/usr/src/homeassistant/homeassistant/components/python_script/init.py", line 146, in execute_script
execute(hass, filename, source, data)
File "/usr/src/homeassistant/homeassistant/components/python_script/init.py", line 153, in execute
compiled = compile_restricted_exec(source, filename=filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/RestrictedPython/compile.py", line 87, in compile_restricted_exec
return _compile_restricted_mode(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/RestrictedPython/compile.py", line 52, in _compile_restricted_mode
c_ast = ast.parse(source, filename, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: AST constructor recursion depth mismatch (before=33, after=61)

from ha-shellies-discovery.

bieniu avatar bieniu commented on June 16, 2024

This is not a log file.

from ha-shellies-discovery.

bieniu avatar bieniu commented on June 16, 2024

Please show me a content of /config/python_scripts/shellies_discovery.py file (screenshot of the beginning of the file).

from ha-shellies-discovery.

jsapede avatar jsapede commented on June 16, 2024

This is not a log file.

where to find the log ?

here the screenshot

Screenshot_2

from ha-shellies-discovery.

jsapede avatar jsapede commented on June 16, 2024

here the logfile
home-assistant.log

from ha-shellies-discovery.

bieniu avatar bieniu commented on June 16, 2024

I think this is not related to the script. Look here home-assistant/core#95364

from ha-shellies-discovery.

majdzik84 avatar majdzik84 commented on June 16, 2024

Same here

from ha-shellies-discovery.

bieniu avatar bieniu commented on June 16, 2024

This is not related to the script.

from ha-shellies-discovery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.