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 4e09d44 commit e1513adCopy full SHA for e1513ad
plugwise/util.py
@@ -22,9 +22,6 @@ def escape_illegal_xml_characters(xmldata: str) -> str:
22
23
def format_measure(measure: str, unit: str) -> bool | float | int:
24
"""Format measure to correct type."""
25
- # TODO: handle with appropriate care 20220405
26
- # continuously reassigning the same value with different type isn't
27
- # to typings liking
28
result: bool | float | int = False
29
try:
30
result = int(measure)
0 commit comments