Skip to content

Commit

Permalink
Review: Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Wichmann committed Mar 29, 2021
1 parent e31ee43 commit 65ebe5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xknx/devices/light.py
Expand Up @@ -275,11 +275,11 @@ def unique_id(self) -> Optional[str]:
"""Return unique id for this device."""
if self.switch.group_address is not None:
return f"{self.switch.group_address}"
else:
return (
f"{self.red.switch.group_address}_{self.green.switch.group_address}_"
f"{self.blue.switch.group_address}_{self.white.switch.group_address}"
)

return (
f"{self.red.switch.group_address}_{self.green.switch.group_address}_"
f"{self.blue.switch.group_address}_{self.white.switch.group_address}"
)

@property
def supports_brightness(self) -> bool:
Expand Down

0 comments on commit 65ebe5b

Please sign in to comment.