From 8d309a8847b35426ea50877bdc556a85967b22c9 Mon Sep 17 00:00:00 2001 From: pfamelis Date: Tue, 7 Nov 2023 16:26:22 +0200 Subject: [PATCH] fix: p4 driver now correctly calls its parent's constructor --- src/device/service/drivers/p4/p4_driver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/device/service/drivers/p4/p4_driver.py b/src/device/service/drivers/p4/p4_driver.py index 9577b9dad..6bb5fbe41 100644 --- a/src/device/service/drivers/p4/p4_driver.py +++ b/src/device/service/drivers/p4/p4_driver.py @@ -74,14 +74,13 @@ class P4Driver(_Driver): """ def __init__(self, address: str, port: int, **settings) -> None: - # pylint: disable=super-init-not-called + super().__init__(settings.pop('name', DRIVER_NAME), address, port, **settings) self.__manager = None self.__address = address self.__port = int(port) self.__endpoint = None self.__settings = settings self.__id = None - self.__name = DRIVER_NAME self.__vendor = P4_VAL_DEF_VENDOR self.__hw_version = P4_VAL_DEF_HW_VER self.__sw_version = P4_VAL_DEF_SW_VER -- GitLab