@dataclass
class Blower:
id_: str
name: str
off: bool
As I create objects I place then into an array:
blwr=Blower(<blah blah>)
blowers.append(blwr)
Now I want to search ‘blowers’ for an object with a certain ‘id_’ value. I can’t seem to find how to do that. I’m guessing I need to use some kind of array search, other than rolling my own, but I don’t find one that fits this particular situation. Can someone help? TIA.