Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual_run error in version 2021.3.29 #3

Closed
miguelpucela opened this issue Mar 31, 2021 · 2 comments
Closed

manual_run error in version 2021.3.29 #3

miguelpucela opened this issue Mar 31, 2021 · 2 comments

Comments

@miguelpucela
Copy link

miguelpucela commented Mar 31, 2021

First of all, thank for your work. It is great and I'm enjoying it a lot and find it very useful.

Calling to manual_run doesn't work in last version (2021.3.29) while run smothly in previous ones.

Content of the error in log file (lots of errors exactly like this):

2021-03-31 10:39:24 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 1620, in _async_timer
    self.poll(time)
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 1556, in poll
    if self.muster(wtime, force) != 0:
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 1532, in muster
    status |= controller.muster(time, force)
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 1327, in muster
    zone_status |= zone.muster(time, zone.schedules, None, None, force)
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 938, in muster
    status |= self._run_queue.merge(
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 695, in merge
    run = self.find_last_by_id(schedule.id)
  File "/config/custom_components/irrigation_unlimited/irrigation_unlimited.py", line 541, in find_last_by_id
    if run.parent.id == id:
AttributeError: 'NoneType' object has no attribute 'id'

I'm runing Home Assistant 2021.3.4 with core-2021.3.4 if that's relevant.

My contiguration is this:

granularity: 10
controllers:
  - name: 'Riego pueblo'
    enabled: true
    zones:
     - name: 'Zona 1'
       enabled: true
       minimum: '00:00'
       maximum: '00:10'
       entity_id: 'switch.sonoff_1000caee3e_1'
       schedules:
         - name: 'Primavera'
           time:
              sun: 'sunrise'
              after: '00:00'
           duration: '00:08'
           month: [mar, apr, may]
     - name: 'Zona 2'
... (similar to previous).

Thank you.

@rgc99
Copy link
Owner

rgc99 commented Apr 1, 2021

Thanks for the error log. It helped me zero in and nail the issue. Will get an update out shortly.

@miguelpucela
Copy link
Author

With the last update, manual_run works again smoothly.

Thank you for the quick update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants