Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
downey-lv committed Jun 4, 2024
1 parent c9a5525 commit 038e1f1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion custom_components/trakt_tv/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,18 @@ def name(self):
@property
def unit_of_measurement(self):
"""Return the unit of measurement of this entity"""
units = ["ratings", "minutes", "comments", "friends", "followers", "following", "episodes", "movies", "shows", "seasons"]
units = [
"ratings",
"minutes",
"comments",
"friends",
"followers",
"following",
"episodes",
"movies",
"shows",
"seasons",
]
for unit in units:
if unit in self.title.lower():
return unit
Expand Down

0 comments on commit 038e1f1

Please sign in to comment.