d4nicoder / hass-sidecar

Homeassistant sidecar app to allow you to write home automations in typescript in a simple way
MIT License
21 stars 2 forks source link

runAt queues are not destroyed withe the automation #4

Closed d4nicoder closed 4 years ago

d4nicoder commented 4 years ago

Describe the bug When an automation is unloades, the runAt queues are not deleted, so they are executed anyway.

To Reproduce Steps to reproduce the behavior:

  1. Create an automation with a runAt function
  2. Delete de automation before runAt executes
  3. Automation is unloaded, but the runAt function still executes.

Expected behavior The runAt callback must be deleted with the automation

Installation (please complete the following information):

Adicional dependencies Nothing

Additional context Nothing