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 b7399f9 commit c3e690b
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"] = unicode(vendor_name, 'unicode_escape')
model_data["vendor_name"] = unicode(vendor_name, "unicode_escape")
if "Plugwise" in vendor_name:
model_data["vendor_name"] = vendor_name.split(" ", 1)[0]

Expand Down

0 comments on commit c3e690b

Please sign in to comment.