I made a custom_component that get status from my city's Subway. Help me to make the code better

Hi, I’m Victor Abranches, and i live in Brazil São Paulo. I made this custom_component to get status from my city’s subway. The subway reports if it’s open, reduced speed or closed. The code get the information from the subway’s website. But i need a help, beucase i know my code is really bad, and i dont want my custom_component to make HA slower neither crash.

If anyone could help me with my project, here is the GitHub link.

I’m having a hard time to understand and learn how to make custom_components.

Thanks to everyone :tada: