Hey @ahmad,
I see you have requested:
config-hosts:
interface: system-files
write:
- /etc/hosts
- /var
But this is not quite correct. system-files is typically used to provide read-only access to system configuration directories created by a non-snap version of an application now running from an equivalent snap.
Does pycom-firmware-updater need write access to the entire /var directory? Could you please explain what exactly the snap need to read/write so we can help you getting the correct declaration?
Also, for writing to /etc/hosts you should plug the network-control interface instead https://github.com/snapcore/snapd/blob/master/interfaces/builtin/network_control.go#L168