diff --git a/custom_components/trakt_tv/sensor.py b/custom_components/trakt_tv/sensor.py index 185c7a8..91558c8 100644 --- a/custom_components/trakt_tv/sensor.py +++ b/custom_components/trakt_tv/sensor.py @@ -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