From a0ae0f60c170e3c280afb38b9bfcbdab1d385a2e Mon Sep 17 00:00:00 2001 From: Andrey Vertiprahov Date: Fri, 28 Jan 2022 15:20:09 +0500 Subject: [PATCH] Eltex.MES. Fix detect profile typo. --- sa/profiles/Eltex/MES/profile.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sa/profiles/Eltex/MES/profile.py b/sa/profiles/Eltex/MES/profile.py index c5491ef7e8..b560a01f23 100644 --- a/sa/profiles/Eltex/MES/profile.py +++ b/sa/profiles/Eltex/MES/profile.py @@ -99,12 +99,13 @@ class Profile(BaseProfile): "116": "MES-3308F", "120": "MES-3348F", "136": "MES-5316A", - "190": ("MES-3324F", "rev.B"), # rev.B + "190": "MES-3324F", # rev.B } + REVISIONS = {"190": "rev.B"} + def get_platform(self, s): - platform, *revision = self.PLATFORMS.get(s) - return platform, revision[0] if revision else None + return self.PLATFORMS.get(s), self.REVISIONS.get(s) INTERFACE_TYPES = { "as": "physical", # Async -- GitLab