Skip to content

Commit

Permalink
Obfuscate label in logging (#340)
Browse files Browse the repository at this point in the history
* Obfuscate label in logging

* Address feedbcak

* Address feedback
  • Loading branch information
iMicknl authored Jan 26, 2022
1 parent 9a4284c commit 64fba7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyoverkiz/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Device:
attributes: States
available: bool
enabled: bool
label: str
label: str = field(repr=obfuscate_string)
device_url: str = field(repr=obfuscate_id)
controllable_name: str
definition: Definition
Expand Down Expand Up @@ -447,7 +447,7 @@ def __init__(

@define(init=False, kw_only=True)
class Scenario:
label: str
label: str = field(repr=obfuscate_string)
oid: str = field(repr=obfuscate_id)

def __init__(self, label: str, oid: str, **_: Any):
Expand Down

0 comments on commit 64fba7d

Please sign in to comment.