Hook Switch API Issues

So I recently got into HA and up until today I had a decently working setup. However, I ran into some issues with getting the binary_sensor.workday_sensor to work after another user recommended I use it. After a bit of trial and error I noticed that I needed to update HA to get it to work. Once I did however, it appears everything related to my hook switch stopped working. Here’s what my log reads:

17-04-12 22:26:23 ERROR (MainThread) [homeassistant.components.switch.hook] Failed authentication API call: 0, 
message='Attempt to decode JSON with unexpected mimetype: text/html'

Is this an issue with how my configuration file is set up? There were other errors as well related to the upgrade, but this one is the most pressing one. Any help would be awesome.

I have the switches set up as shown:

switch:
  - platform: hook
    username: [email protected]
    password: !secret hook

What version of HA are you running now?

I read this comment earlier and decided not to upgrade yet: http://disq.us/p/1hpai9m

I am on 0.41.0 and I’m seeing a similar error message - WARNING (MainThread) [aiohttp.client] Attempt to decode JSON with unexpected mimetype: text/html - since I got my Hook up & running. It seems to be working fine, though.

My setup for the Hook is the same as yours, btw.

Well as of right now Ive down graded to 0.41.0 and it seems to register the hook switches (but is now giving me some new errors). I upgraded to 0.42.3 and then down graded until it worked.

This is being tracked in https://github.com/home-assistant/home-assistant/issues/7007 I’ve popped the fix in there too.