Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BeatsuDev committed Sep 5, 2024
1 parent 2cc3922 commit e67581b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tibber/types/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

class NonDecoratedTibberHome:
"""A Tibber home with methods to get/fetch home information without the decorator functions to subscribe to live data."""

def __init__(self, data: dict, tibber_client: "Account"):
self.cache: dict = data or {}
self.tibber_client: "Account" = tibber_client
Expand Down Expand Up @@ -204,7 +203,6 @@ def __str__(self) -> str:
rep = f"{self.app_nickname} is owned by {self.owner.name} with {self.number_of_residents} residents"
if self.city is not None:
rep += f" at {self.city}"

return rep

def __repr__(self) -> str:
Expand All @@ -216,7 +214,6 @@ class TibberHome(NonDecoratedTibberHome):
"""A Tibber home with methods to get/fetch home information and subscribe to live data.
This class expands on the NonDecoratedTibberHome class by adding methods to subscribe to live data.
"""

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._websocket_client = None
Expand Down Expand Up @@ -271,8 +268,7 @@ def start_live_feed(
:param kwargs: Additional arguments to pass to the websocket (gql.transport.WebsocketsTransport).
"""
if not self.features.real_time_consumption_enabled:
raise ValueError(
"The home does not have real time consumption enabled.")
raise ValueError("The home does not have real time consumption enabled.")

if not self.tibber_client.user_agent and not user_agent:
raise ValueError(
Expand Down

0 comments on commit e67581b

Please sign in to comment.