You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any Ideas what could cause this after pyscript update to 1.6.2 ?
Source: custom_components/pyscript/eval.py:511
Exception in <file.solis_control.solis_control> line 98: inverterList = response.json() ^ AttributeError: '_BaseRequestContextManager' object has no attribute 'json'
i have the same problem , roll back to 1.6.1 of pyscript and all is good again (tried upgrade twice, same error)
This error originated from a custom integration.
Logger: custom_components.pyscript.file.solis_control.solis_control
Source: custom_components/pyscript/eval.py:511
integration: Pyscript Python scripting (documentation, issues)
First occurred: 12:16:58 (5 occurrences)
Last logged: 12:24:13
Exception in <file.solis_control.solis_control> line 117: inverterList = response.json() ^ AttributeError: '_BaseRequestContextManager' object has no attribute 'json'
@craigbarratt is there any hotfix for pyscript planned? I've only done a bit of meddling with installed custom components so my preference is to wait for pyscript to be fixed.
Referring to the [https://github.com/stevegal/solis_control/issues/34](solis control) issue referenced, there are actually 4 methods with an await - Should they all be non-awaited?
One final question regarding HA updates - because I reverted back to 1.6.1, I now have a pyscript 1.6.2 update which I continue to ignore until it is fixed - is it true that as long as I never click on that to update it, it will sit there indefinitely, or will it somehow get picked up by other HA updates?
One final question regarding HA updates - because I reverted back to 1.6.1, I now have a pyscript 1.6.2 update which I continue to ignore until it is fixed - is it true that as long as I never click on that to update it, it will sit there indefinitely, or will it somehow get picked up by other HA updates?
thanks!
You can press skip (next to the update button) to remove the notification. It will not auto update unless you have any automations or integrations setup that would do so for you. This is the case for any integration in HA
Activity
eddysteurs commentedon Mar 22, 2025
i have the same problem , roll back to 1.6.1 of pyscript and all is good again (tried upgrade twice, same error)
This error originated from a custom integration.
Logger: custom_components.pyscript.file.solis_control.solis_control
Source: custom_components/pyscript/eval.py:511
integration: Pyscript Python scripting (documentation, issues)
First occurred: 12:16:58 (5 occurrences)
Last logged: 12:24:13
Exception in <file.solis_control.solis_control> line 117: inverterList = response.json() ^ AttributeError: '_BaseRequestContextManager' object has no attribute 'json'
craigbarratt commentedon Mar 22, 2025
I'm not familiar with the solis_control.py code. It looks like there is an issue for this here.
I'd recommend try removing the await on the previous line 116.
abandyb commentedon Mar 23, 2025
@craigbarratt is there any hotfix for pyscript planned? I've only done a bit of meddling with installed custom components so my preference is to wait for pyscript to be fixed.
Referring to the [https://github.com/stevegal/solis_control/issues/34](solis control) issue referenced, there are actually 4 methods with an await - Should they all be non-awaited?
One final question regarding HA updates - because I reverted back to 1.6.1, I now have a pyscript 1.6.2 update which I continue to ignore until it is fixed - is it true that as long as I never click on that to update it, it will sit there indefinitely, or will it somehow get picked up by other HA updates?
thanks!
IgnusG commentedon Mar 23, 2025
You can press skip (next to the update button) to remove the notification. It will not auto update unless you have any automations or integrations setup that would do so for you. This is the case for any integration in HA
don't skip await in aeval(); see #710
craigbarratt commentedon Mar 24, 2025
I pushed a potential fix; please try the latest (master).
jparnellx commentedon Mar 24, 2025
Hi, I just downloaded the latest version but still get the same error as the original poster.
craigbarratt commentedon Mar 24, 2025
To be sure, did you download 1.6.2 or the current github master?
Can you check whether the variable
do_awaitappears anywhere inconfig/custom_components/pyscript/eval.py?jparnellx commentedon Mar 24, 2025
Apologies, my bad. HA hadn't been restarted after i updated.
I can confirm the issue is now FIXED!!
Thank you very much.
craigbarratt commentedon Mar 24, 2025
Released 1.6.3 with this fix.