elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
179 stars 42 forks source link

Removed missing items from checked list #195

Closed kramttocs closed 1 year ago

kramttocs commented 1 year ago

Previously if a camera had been selected but then removed from BI, the configure window threw an error like:

User input malformed: LivingRoom is not a valid option for dictionary value @ data['allowed_camera']

I added an else condition so that if there is 'checked' data (the previously selected values), any item in that list will get removed if it doesn't exist in the current list directly from the BI Api