Skip to content

Commit

Permalink
fixup: nitpicks Python code fixed using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
autoruff committed Jan 30, 2025
1 parent 766c287 commit 1028f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugwise/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def format_measure(measure: str, unit: str) -> float | int:
def get_vendor_name(module: etree, model_data: ModuleData) -> ModuleData:
"""Helper-function for _get_model_data()."""
if (vendor_name := module.find("vendor_name").text) is not None:
model_data["vendor_name"] = vendor_name.decode('utf-8')
model_data["vendor_name"] = vendor_name.decode("utf-8")
if "Plugwise" in vendor_name:
model_data["vendor_name"] = vendor_name.split(" ", 1)[0]

Expand Down

0 comments on commit 1028f17

Please sign in to comment.