Skip to content

Commit 95cd54b

Browse files
committed
Check if real time consumption is available before starting live feed
1 parent 467d8a8 commit 95cd54b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: tibber/types/home.py

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def decorator(callback):
207207

208208
def start_livefeed(self):
209209
"""Creates a websocket and starts pushing data out to registered callbacks."""
210+
if not self.features.real_time_consumption_enabled:
211+
raise ValueError("The home does not have real time consumption enabled.")
210212
self.tibber_client.eventloop.run_until_complete(self.run_websocket_loop())
211213

212214
async def run_websocket_loop(self):

0 commit comments

Comments
 (0)