Need help with value_template for MQTT HVAC

I have a problem getting this to work.
When I use the custom component the log outputs:

2019-01-25 21:42:15 WARNING (MainThread) [homeassistant.loader] You are using a custom component for climate.mqtt_climate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-01-25 21:42:16 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform mqtt_climate
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
    return fut.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/home/homeassistant/.homeassistant/custom_components/climate/mqtt_climate.py", line 149, in async_setup_platform
    await _async_setup_entity(hass, config, async_add_entities)
  File "/home/homeassistant/.homeassistant/custom_components/climate/mqtt_climate.py", line 234, in _async_setup_entity
    discovery_hash,
  File "/home/homeassistant/.homeassistant/custom_components/climate/mqtt_climate.py", line 250, in __init__
    payload_available, payload_not_available)
TypeError: __init__() takes 2 positional arguments but 5 were given

Any idea?