From 7d9929ad33e9659a1c629bbc4d0094486f03f3c3 Mon Sep 17 00:00:00 2001 From: wannesmarynen Date: Sun, 13 Jun 2021 22:56:23 +0200 Subject: [PATCH] fixed None issue (#228) * fixed issue fixed the none issue and cleared up parameters * Update spotcast_controller.py --- custom_components/spotcast/spotcast_controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/spotcast/spotcast_controller.py b/custom_components/spotcast/spotcast_controller.py index d1ec322f..ffd4a34d 100644 --- a/custom_components/spotcast/spotcast_controller.py +++ b/custom_components/spotcast/spotcast_controller.py @@ -154,10 +154,10 @@ class SpotcastController: accounts: dict = {} hass = None - def __init__(self, hass, sp_dc, sp_key, accounts): - if accounts: - self.accounts = accounts - accounts["default"] = OrderedDict([("sp_dc", sp_dc), ("sp_key", sp_key)]) + def __init__(self, hass, sp_dc, sp_key, accs): + if accs: + self.accounts = accs + self.accounts["default"] = OrderedDict([("sp_dc", sp_dc), ("sp_key", sp_key)]) self.hass = hass def get_token_instance(self, account=None):