feat: Adding path support for disk storage display#920
Conversation
|
Thanks for working on this feature. I tested the same sensor API changes on Linux with Would you consider making the selected path a global setting in config:
DISK_PATH: "/"
DISK_PATH = config.CONFIG_DATA["config"].get("DISK_PATH") or "/"This would keep the filesystem selection independent from the visual theme and avoid repeating the same path in every theme. It also seems to match the use case described in #947. There is also a backward-compatibility issue in the current implementation: |
The current implementation only read disk storage for the root path "/'
I added support for it so that you can optionally custom define path for your theme
It is more important for me to know the mounted storage in my use case that's why I want this functionality
For the theme setting, we can have the additional
PATHattribute forDISKintheme.yaml