Add more configuration options to file sensor

I was setting up a file sensor (core/homeassistant/components/file at dev · home-assistant/core · GitHub) and found out that ‘icon’ is an invalid option. I also see that there is no availability or device class option.

My request is to at least add the ‘icon’ option to the file sensor. Other options such as unique_id, availability, device_class, state_class and scan_interval might also be nice to have.

Does a customization entry help?

That could indeed help. However, I find it strange that this extra customization would be needed for this sensor type and not for others.