Skip to content

Commit

Permalink
Temporarily step around the percent sign in issue #60
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltrails committed Sep 20, 2023
1 parent b0bf4df commit 4e74761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vdu_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ def query_capabilities(self, vdu_number: str) -> str:
"""Return a vpc capabilities string."""
result = self.__run__(*['capabilities'] + self.id_key_args(vdu_number), log_id=vdu_number)
capability_text = result.stdout.decode('utf-8', errors='surrogateescape')
return capability_text
return capability_text.replace('%', '')

def get_type(self, vcp_code) -> str | None:
return self.vcp_type_map[vcp_code] if vcp_code in self.vcp_type_map else None
Expand Down Expand Up @@ -1845,7 +1845,7 @@ def parse_file(self, config_path: Path) -> None:
alt_text = preserve_indents_match.group(1) if preserve_indents_match is not None else ''
# Remove excess indentation while preserving the minimum existing indentation.
alt_text = inspect.cleandoc(alt_text)
self.ini_content['ddcutil-capabilities']['capabilities-override'] = alt_text
self.ini_content['ddcutil-capabilities']['capabilities-override'] = alt_text.replace('%', '')

def reload(self) -> None:
log_info(f"Reloading config: {self.file_path}")
Expand Down

0 comments on commit 4e74761

Please sign in to comment.