Ecobee and SSL

Hey all, I have had ecobee in my HA for awhile now without ever having any issues. I recently got SSL setup and ever since that my automations are not able to change the state anymore. I ended up deleting the app within ecobee developer site and creating a new one with a new api key. Now HA can’t even read the current status / temp…anything.(i did update config file) Im sure others have an ecobee while using ssl but I haven’t been able to find anything for a couple days now and its killing me lol. Any help would be greatly appreciated!

My config file looks like…

ecobee:
  api_key: <key>

what I see in the logs is…

2017-08-12 01:10:14 ERROR (MainThread) [homeassistant.setup] Error during setup of component ecobee
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/setup.py”, line 194, in _async_setup_component
component.setup, hass, processed_config)
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/ecobee.py”, line 121, in setup
NETWORK = EcobeeData(hass.config.path(ECOBEE_CONFIG_FILE))
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/ecobee.py”, line 93, in init
self.ecobee = Ecobee(config_file)
File “/srv/homeassistant/lib/python3.4/site-packages/pyecobee/init.py”, line 73, in init
self.update()
File “/srv/homeassistant/lib/python3.4/site-packages/pyecobee/init.py”, line 296, in update
self.get_thermostats()
File “/srv/homeassistant/lib/python3.4/site-packages/pyecobee/init.py”, line 141, in get_thermostats
if self.refresh_tokens():
File “/srv/homeassistant/lib/python3.4/site-packages/pyecobee/init.py”, line 118, in refresh_tokens
self.request_pin()
File “/srv/homeassistant/lib/python3.4/site-packages/pyecobee/init.py”, line 81, in request_pin
self.authorization_code = request.json()[‘code’]
KeyError: ‘code’
2017-08-12 01:10:14 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of climate.ecobee. Setup failed for dependencies: ecobee
2017-08-12 01:10:14 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.ecobee: Could not setup all dependencies.

I was able to set the app back up with the pin and can see all the information again. however i still can not change any of the states. the automations i have that use to work are no longer working since the ssl. this is the message i see:
WARNING (Thread-9) [pyecobee] Error connecting to Ecobee while attempting to set climate hold. Refreshing tokens…

I have the same error but have been unable to get past the configuration error, did you do anything other than what was in the website directions?