From ef776e9cb315f17484a38178f5e1b607aab12e4d Mon Sep 17 00:00:00 2001 From: Yordan Suarez Date: Wed, 14 Dec 2022 02:33:16 -0500 Subject: [PATCH] add some comment --- custom_components/fpl/fplapi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/fpl/fplapi.py b/custom_components/fpl/fplapi.py index 9520e7a..4e49685 100644 --- a/custom_components/fpl/fplapi.py +++ b/custom_components/fpl/fplapi.py @@ -54,6 +54,7 @@ class FplApi: territoryArray = json_data["data"]["territory"] if len(territoryArray) == 0: + # returns main region by default in case no regions found return FPL_MAINREGION self._territory = territoryArray[0]