Closed umesh-timalsina closed 3 years ago
>>> from symbench_athens_client.models.components import Batteries >>> Batteries <symbench_athens_client.models.components.ComponentsBuilder object at 0x000001CF2B002B80> >>> Batteries.all ['TurnigyGraphene1600mAh4S75C', 'TurnigyGraphene6000mAh4S75C', 'Turnigynano_tech1450mAh2040C', 'TurnigyGraphene4000mAh4S75C', 'TurnigyGraphene1000mAh3S75C', 'Turnigyn ano-tech3000mAh2040C', 'TurnigyGraphene6000mAh6S75C', 'TurnigyGraphene1500mAh4S75C', 'TurnigyReceiver1500mAh6.0V', 'TurnigyGraphene1000mAh2S75C', 'Turnigynano_tech170 0mAh2040C', 'TurnigyGraphene800mAh2S0C', 'TurnigyGraphene1000mAh4S75C', 'TurnigyReceiver1500mAh6_0V', 'TurnigyGraphene4000mAh6S75C', 'TurnigyGraphene800mAh2S20C', 'Tu rnigyGraphene1600mAh4S75CSquare', 'TurnigReceiver1500mAh6_0V', 'TurnigyGraphene1300mAh4S75C', 'TurnigyGraphene1000mAh6S75C', 'TurnigyGraphene4000mAh3S75C', 'TurnigyGr aphene3000mAh3S75C', 'TurnigyGraphene1400mAh4S75C', 'TurnigyGraphene3000mAh6S75C', 'TurnigyGraphene1300mAh3S75C', 'TurnigyGraphene3000mAh4S75C', 'Turnigynano-tech2000 mAh2040C', 'TurnigyReceiver1500mAh4_8V', 'TurnigyGraphene5000mAh6S75C', 'TurnigyGraphene1500mAh3S75C', 'TurnigyGraphene1200mAh6S75C', 'TurnigyGraphene5000mAh3S75C', ' TurnigyGraphene2200mAh4S75C', 'TurnigyGraphene5000mAh4S75C', 'Turnigy_nano_tech_2000mAh_20_40C', 'TurnigyGraphene1400mAh3S75C', 'TurnigyGraphene2200mAh3S75C', 'Turnig yGraphene4000mAh3S5C', 'TurnigyGraphene6000mAh3S75C', 'Turnigynanotech3000mAh_2040C'] >>> Batteries["TurnigyGraphene1600mAh4S75C"] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\timalsu\symbench-athens-client\symbench_athens_client\models\components.py", line 31, in __repr__ f"<{self.__class__.__name__}, Category: {self.category}, Name: {self.name}>" AttributeError: 'Battery' object has no attribute 'category'