Shelly Uni Plus Impluse meter unit of measurement

I’m using the standard Shelly integration, but I patched it with some code from the DEV branch, as the feature isn’t integrated yet, as far as I can see: