nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
15 stars 4 forks source link

Restructure codebase into multiple files #49

Closed thybag closed 1 month ago

thybag commented 1 month ago

Based off of https://github.com/nathan-gs/ha-map-card/pull/47

I've had a go at reorganising the codebase to make it a bit more manageable as it grows. Effectively separating the classes to their own files and adding a build system. Initially organised around classes, but util will likely makes more sense to separate into discrete methods at some point, but though best to start simple(ish).

Some of the class types are a little arbitrary, but hopefully this arrangement makes rough sense.

To get going

nathan-gs commented 1 month ago

Looks good, except for the 2 minor comments

nathan-gs commented 1 month ago

Thank you @thybag!