code: def _get_property(device_path: Union[Path, str], property_name: str) -> str:
      
      with open(str(Path(device_path, property_name))) as file:
          return file.readline().strip()
docs: Gets the given property for a device.