update format to fstring

This commit is contained in:
crazyiop
2022-06-11 23:54:01 +02:00
committed by xs5871
parent 6068b60cac
commit ffcfc9835d
9 changed files with 30 additions and 44 deletions

View File

@@ -57,7 +57,7 @@ class statusLED(Extension):
self._layer_last = layer_active
def __repr__(self):
return 'SLED({})'.format(self._to_dict())
return f'SLED({self._to_dict()})'
def _to_dict(self):
return {