How to rename a state

This is the Github repository: core/homeassistant/components/broadlink at dev · home-assistant/core · GitHub

I am certainly no expert, but I think the file needs to be named sensor.py, not sensorfork.py.

I already have a sensor.py file…

I just use template platform… I think it is the easiest way…works fine here