Add flake8 config

This commit is contained in:
Andre Basche 2023-07-18 21:31:16 +02:00
parent 4f7d4860db
commit 22367242a2
4 changed files with 10 additions and 5 deletions

View file

@ -16,9 +16,9 @@ class HonParameterRange(HonParameter):
def _set_attributes(self) -> None:
super()._set_attributes()
self._min = str_to_float(self._attributes["minimumValue"])
self._max = str_to_float(self._attributes["maximumValue"])
self._step = str_to_float(self._attributes["incrementValue"])
self._min = str_to_float(self._attributes.get("minimumValue", 0))
self._max = str_to_float(self._attributes.get("maximumValue", 0))
self._step = str_to_float(self._attributes.get("incrementValue", 0))
self._default = str_to_float(self._attributes.get("defaultValue", self.min))
self._value = self._default