diff --git a/sonic_platform_base/component_base.py b/sonic_platform_base/component_base.py index 8f3887f95..a751f9608 100644 --- a/sonic_platform_base/component_base.py +++ b/sonic_platform_base/component_base.py @@ -76,7 +76,7 @@ def get_firmware_update_notification(self, image_path): A string containing the component firmware update notification if required. By default 'None' value will be used, which indicates that no actions are required """ - return None + return 'None' def install_firmware(self, image_path): """ diff --git a/tests/component_base_test.py b/tests/component_base_test.py new file mode 100644 index 000000000..3c4fe17db --- /dev/null +++ b/tests/component_base_test.py @@ -0,0 +1,7 @@ +from sonic_platform_base.component_base import ComponentBase + +class TestComponentBase: + + def test_get_firmware_update_notification(self): + cpnt = ComponentBase() + assert(cpnt.get_firmware_update_notification(None) == "None")