benleb / surepy

🐾 Library & CLI to monitor and control the Pet Door & Cat Flap Connect 🚪 the Pet Feeder Connect 🍽 and the Felaqua 💦 sold by Sure Petcare
https://pypi.org/project/surepy/
MIT License
78 stars 38 forks source link

Incorrect use of self._breeds when populating self._species_breeds #88

Open ThorstenKleinSmith opened 3 years ago

ThorstenKleinSmith commented 3 years ago

The code in surepy/__init__.py is trying to check if the species was seen before but incorrectly checks that in self._breeds instead of self._species_breeds:

if breed["species_id"] not in self._breeds:

should be

if breed["species_id"] not in self._species_breeds: