Could someone give me a solution please

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/”, line 146, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
AttributeError: module ‘custom_components.getsteps’ has no attribute ‘setup’

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