nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
631 stars 41 forks source link

"object NoneType can't be used in 'await' expression" #366

Closed robertoleonardo closed 2 months ago

robertoleonardo commented 2 months ago

[although this involves scheduler card, given what the error says, i think this probably makes more sense to post in the scheduler component repo. but i'm happy to move it to scheduler card if that makes more sense, @nielsfaber]

Checklist

Steps to Reproduce

while the update from the other day does seem to largely fix the separate issue i was having, i just noticed one small, non critical thing... when i use the toggle switch on the scheduler card to turn a scheduled event on or off, the following error message briefly appears on screen:

Failed to call service switch/turn_on. object NoneType can't be used in 'await' expression

Despite the error that shows up in the bottom corner of my dashboard, the toggle switches do actually seem to work as expected -- so this isn't a critcal/urgent issue. just a minor annoyance.

robertoleonardo commented 2 months ago

impressive turnaround time! ha. thanks, @nielsfaber -- the update you just pushed fixes it.