Modbus sensor to support state_class

See Ability to set state_class on modbus sensor