Dziś po pelnym resecie aplikacji AiS przestało mi działać Shellies Discovery. Czy to ma związek z aktyalizacją? (chyba zmienił sie phyton) Da się to jakoś naprawić?
Logger: homeassistant.components.automation.shellies_discovery
Source: components/python_script/init.py:147
Integration: Automatyzacja (documentation, issues)
First occurred: 23:53:58 (18 occurrences)
Last logged: 23:56:58
Shellies Discovery: Error executing script. Unexpected error for call_service at pos 1: Unknown slice type: <ast.Constant object at 0xef4b1af0>
While executing automation automation.shellies_discovery
Shellies Discovery: Error executing script. Unexpected error for call_service at pos 1: Unknown slice type: <ast.Constant object at 0xefd6d460>
Shellies Discovery: Error executing script. Unexpected error for call_service at pos 1: Unknown slice type: <ast.Constant object at 0xef4786a0>
Shellies Discovery: Error executing script. Unexpected error for call_service at pos 1: Unknown slice type: <ast.Constant object at 0xee309430>
Traceback (most recent call last):
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/helpers/script.py”, line 253, in _async_step
await getattr(
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/helpers/script.py”, line 463, in _async_call_service_step
await self._async_run_long_action(service_task)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/helpers/script.py”, line 422, in _async_run_long_action
long_task.result()
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/core.py”, line 1490, in async_call
task.result()
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/core.py”, line 1529, in _execute_service
await self._hass.async_add_executor_job(handler.job.target, service_call)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/python_script/init.py”, line 108, in python_script_service_handler
execute_script(hass, call.service, call.data)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/python_script/init.py”, line 140, in execute_script
execute(hass, filename, source, data)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/homeassistant/components/python_script/init.py”, line 147, in execute
compiled = compile_restricted_exec(source, filename=filename)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/compile.py”, line 90, in compile_restricted_exec
return _compile_restricted_mode(
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/compile.py”, line 68, in compile_restricted_mode
policy_instance.visit(c_ast)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 407, in visit
return visitor(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 1437, in visit_Module
node = self.node_contents_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 535, in node_contents_visit
return super(RestrictingNodeTransformer, self).generic_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 483, in generic_visit
value = self.visit(value)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 407, in visit
return visitor(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 1310, in visit_FunctionDef
node = self.node_contents_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 535, in node_contents_visit
return super(RestrictingNodeTransformer, self).generic_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 483, in generic_visit
value = self.visit(value)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 407, in visit
return visitor(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 1394, in visit_Return
return self.node_contents_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 535, in node_contents_visit
return super(RestrictingNodeTransformer, self).generic_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 492, in generic_visit
new_node = self.visit(old_value)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 407, in visit
return visitor(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 873, in visit_Call
node = self.node_contents_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 535, in node_contents_visit
return super(RestrictingNodeTransformer, self).generic_visit(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 483, in generic_visit
value = self.visit(value)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/ast.py”, line 407, in visit
return visitor(node)
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 966, in visit_Subscript
args=[node.value, self.transform_slice(node.slice)],
File “/data/data/pl.sviete.dom/files/usr/lib/python3.9/site-packages/RestrictedPython/transformer.py”, line 390, in transform_slice
raise NotImplementedError(“Unknown slice type: {0}”.format(slice))
NotImplementedError: Unknown slice type: <ast.Constant object at 0xef83a820>