Fix: Repr for Parameter should contain param_type, not type

This commit is contained in:
Dominik Moritz Roth 2024-10-10 17:14:00 +02:00
parent 81398225ec
commit 878fb9cf4f

View File

@ -99,7 +99,7 @@ class NuconParameter:
self.nucon.set(self, new_value, force)
def __repr__(self):
return f"NuconParameter(id='{self.id}', value={self.value}, type={self.param_type.__name__}, writable={self.is_writable})"
return f"NuconParameter(id='{self.id}', value={self.value}, param_type={self.param_type.__name__}, writable={self.is_writable})"
def __str__(self):
return self.id