We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7399f9 commit 766c287Copy full SHA for 766c287
plugwise/util.py
@@ -216,7 +216,7 @@ def format_measure(measure: str, unit: str) -> float | int:
216
def get_vendor_name(module: etree, model_data: ModuleData) -> ModuleData:
217
"""Helper-function for _get_model_data()."""
218
if (vendor_name := module.find("vendor_name").text) is not None:
219
- model_data["vendor_name"] = unicode(vendor_name, 'unicode_escape')
+ model_data["vendor_name"] = vendor_name.decode('utf-8')
220
if "Plugwise" in vendor_name:
221
model_data["vendor_name"] = vendor_name.split(" ", 1)[0]
222
0 commit comments