in device_info_pkg/device_info_pkg/gpio_module.py [0:0]
def get(self):
"""Helper method to read the value attribute of the GPIO port.
"""
try:
with open(self.value_path, "r") as value:
result = value.read()
return str(result.strip())
except Exception as ex:
self.logger.error("Error while getting the value for the GPIO port "
f"{self.gpio}: {ex}")