Shelly4Hass current_consumption state 'W' cannot be processed as a number

As this is not a core integration you could ask the developer of that third party integration if no one else has any suggestions.

Is there any reason you are not using the core Shelly integration?

It works very well once Gen 1 devices are set up to use unicast (Not needed for Gen 2 devices).