Could someone give me a solution please

Hi,
When i tried to put this in as a custom component it gives me this error - Error during setup of component getsteps
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/setup.py”, line 146, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
AttributeError: module ‘custom_components.getsteps’ has no attribute ‘setup’

https://gist.githubusercontent.com/wardcraigj/f4456186759302d75d3619d642999e5e/raw/56c36038536c0db00f8591f3e536471fb9d6785b/google_fit.py

Because it’s a sensor platform and not a component.