aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantofara <48907599+antofara@users.noreply.github.com>2023-04-19 06:34:27 +0200
committerGitHub <noreply@github.com>2023-04-18 21:34:27 -0700
commit8bec7e3f63a5b9c2ca1afc51b6460517445f5c1e (patch)
treebb0952b2a3a3d6cda8fa7ab6dd943537428908fe
parent33cc76f339c04bc3f970c8c2c434c911bd45da92 (diff)
downloadmobly-8bec7e3f63a5b9c2ca1afc51b6460517445f5c1e.tar.gz
Fix unused 'name' argument in AttenuatorPath constructor (#877)
store the path name for future usage
-rw-r--r--mobly/controllers/attenuator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobly/controllers/attenuator.py b/mobly/controllers/attenuator.py
index cbe3cb3..eebc0e4 100644
--- a/mobly/controllers/attenuator.py
+++ b/mobly/controllers/attenuator.py
@@ -129,6 +129,7 @@ class AttenuatorPath:
self.model = attenuation_device.model
self.attenuation_device = attenuation_device
self.idx = idx
+ self.name = name
if (self.idx >= attenuation_device.path_count):
raise IndexError("Attenuator index out of range!")