Closed mobilifone closed 6 days ago
I can confirm this, my cover opening schedules gives the same error. Even when toggling on/off. The bellow is what is shown in the log viewer:
result = await task ^^^^^^^^^^ File "/config/custom_components/scheduler/switch.py", line 458, in async_turn_off await self.coordinator.async_edit_schedule( TypeError: object NoneType can't be used in 'await' expression
Ouch, this seems 100% related to a change I made in the 3.3.4 release. I will make a fix for this tomorrow (I’m not at home today).
This is now resolved in the v3.3.5 release. My apologies for causing this issue.
Thanks! Dario
Checklist
Expected behavior
[What you expected to happen] All schedule switches related to the list should be turned on
Actual behavior
[What actually happened] Only the first element in the list is turned on and than error is raised
Steps to Reproduce
[Explain how to see the behaviour] This happen after the last scheduler update to version. 3.3.4
In my case I have several schedule items with different tags.
I have a script that provide a list of schedule switches (with a specific tag) to be turned on. When the script iterates the list, only the first element (the {{repeat.item}} scheduler switch) turns on but an error "object NoneType can't be used in 'await expression" is raised.
In the previous version was working fine. The problem seems related to scheduler switches only (working fine with any other switch in the house)
Here is the script fragment in yaml to reproduce (see the attached image with the script trace)
alias: myscript sequence:
any help is appreciated. Thanks Dario