Remote 1-wire device integration using mount.cifs

I am using mount.cifs to mount a remote 1-wire files system. I then use standard code in the configuration.yaml to make the sensors available to Home Assistant.

The problem is that the mount.cifs process pads the 1-wire values with ‘\x00’. I have modified the stock onewire.py with a line to replace those ‘\x00’ with ‘’ as needed.

        line = line.replace('\x00','')

Is there another way to mount the remote 1-wire file system without getting the padding? Or could the standard onewire.py be modified to include this modification so that I can eliminate my Custom_Component?

Thanks in advance for any ideas!

What about some other solution.

The MQTT solution is good but I was really hoping to keep the original solution.

This question is motivated by the desire to get rid of the log warnings that this generates on boot. I guess it’s just aesthetics now.

Thanks for the idea!