Creating custom_component for the EQ-3 MAX Cube, how to?

I do need to change the file
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/maxcube.py

and make the polling from 60sec to 5 minutes. I know have to change line 72, but then where to put the new file? Directly in the directory custom_component, or do I have to create a specific sub directory?

Then what to put in the configuration.yaml?

Thanks

Is it correct to put the file here
custom_component/climate/maxcube.py

and then simply add in the configuration file

maxcube:
   host: IPADDRESS

?

Did that, receive this error

2018-02-19 18:09:31 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform maxcube
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 79, in async_setup
None, platform.setup_platform, hass, platform_config,
AttributeError: module ‘custom_components.climate.maxcube’ has no attribute ‘setup_platform’