kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.93k stars 491 forks source link

Cannot delete input #350

Closed zsole2 closed 6 years ago

zsole2 commented 6 years ago

Mycodo Issue Report:

Problem Description

On the input page, deleting HTU21D sensor

Errors

_Error: Delete Input: type object 'Conditional' has no attribute 'inputid' There was no conditional set up for this sensor

Nothing apparent in the logs

kizniche commented 6 years ago

I can reproduce this, but I'm not going to push a fix for this just yet.

The reason is that I'm currently working on moving Mycodo from using Python 2.7 to Python 3.4. I just managed to get both the backend and the frontend working and am in the process of fixing all the minute details related to moving form python 2.x to 3.x. I have a fix committed in the python3_merge branch, and will make a big release that will include the fix for this issue.

kizniche commented 6 years ago

I've incorporated the fix for this somewhere in the commits from the python3_merge branch that was recently merged with master. I should have a release ready in the next day or two. I've tested everything (including a fresh install) except the upgrade process.