Skip to content

Commit

Permalink
fixed None issue (#228)
Browse files Browse the repository at this point in the history
* fixed issue

fixed the none issue and cleared up parameters

* Update spotcast_controller.py
  • Loading branch information
wannesmarynen authored Jun 13, 2021
1 parent a346ae6 commit 7d9929a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/spotcast/spotcast_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7d9929a

Please sign in to comment.